Oracle ADF Controller API Reference 10g Release 2 (10.1.2)
B14363-01
November 2004


oracle.adf.controller.struts.util

Class ErrorReporting

java.lang.Object
  extended byoracle.adf.controller.struts.util.ErrorReporting


public class ErrorReporting
extends java.lang.Object

Helper class to transform exceptions thrown by the ADF model into Struts ActionErrors.

Since:
9.0.5

Constructor Summary
ErrorReporting()

Method Summary
static void
addError(org.apache.struts.action.ActionErrors errors, int num, int lev, java.lang.Throwable ex)
Adds an exception to the ActionErrors collection.
static void
transferErrorsToStrutsCollection(oracle.adf.model.binding.DCBindingContainer container, org.apache.struts.action.ActionErrors errors)
Transfer binding container runtime errors to the Struts ActionErrors collection.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ErrorReporting

public ErrorReporting()

Method Detail

transferErrorsToStrutsCollection

public static void transferErrorsToStrutsCollection(oracle.adf.model.binding.DCBindingContainer container,
                                                    org.apache.struts.action.ActionErrors errors)
Transfer binding container runtime errors to the Struts ActionErrors collection.
Parameters:
container - the binding container
errors - the ActionErrors object where new errors will be added.

addError

public static void addError(org.apache.struts.action.ActionErrors errors,
                            int num,
                            int lev,
                            java.lang.Throwable ex)
Adds an exception to the ActionErrors collection. Recursive routine traversing the exception tree.
Parameters:
errors - the collection of errors
num - the error index
lev - the current level of recursion
ex - the exception node being treated

Oracle ADF Controller API Reference 10g Release 2 (10.1.2)
B14363-01
November 2004


Copyright © 1997, 2004, Oracle.
All rights reserved.