|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.jbo.JboWarning
oracle.jbo.JboException
oracle.jbo.ValidationException
public class ValidationException
Indicates a validation failure. This class may be extended to provide localizable exceptions to arbitrary bundle classes.
Field Summary | |
---|---|
protected java.lang.String |
mRowDefFullName
|
Fields inherited from class oracle.jbo.JboException |
---|
mHasPeerException |
Fields inherited from class oracle.jbo.JboWarning |
---|
mHelper, SEVERITY_ERROR, SEVERITY_RAC_RECOVERABLE_ERROR, SEVERITY_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING |
Constructor Summary | |
---|---|
ValidationException(java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params)
Creates a localizable exception. |
|
ValidationException(ResourceBundleDef resBundleDef,
java.lang.String errorCode,
java.lang.Object[] params)
Creates a localizable exception. |
|
ValidationException(java.lang.String message)
Create a non-formattable exception. |
|
ValidationException(java.lang.String msg,
java.lang.String errorCode,
java.lang.Object[] params)
Creates a formattable but non-localizable exception. |
Method Summary | |
---|---|
ValidationException |
getAttributeException(java.lang.String rowDefName,
java.lang.String attrName)
|
java.lang.String |
getRowDefFullName()
Returns the full name of the definition object of the Row that this exception was raised in. |
boolean |
hasAttributeException(java.lang.String attrName)
|
static void |
raise(java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params,
java.util.ArrayList details)
Creates a localizable exception. |
static void |
raise(java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params,
java.util.ArrayList details,
boolean peer,
boolean voEx)
Creates a localizable exception. |
static void |
raise(java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params,
java.util.Vector details)
Creates a localizable exception. |
static void |
raiseWithNamedParameters(java.lang.Class resBundleClass,
java.lang.String errorCode,
java.util.Map params,
java.util.ArrayList details,
boolean peer,
boolean voEx)
Creates a localizable exception. |
void |
setErrorParameters(java.lang.Object[] params)
Override so that when custom messages are created for validation, the caller can set evaluated parmeters for the message. |
void |
setErrorParametersMap(java.util.Map params)
Resets the error parameters as a name-value pair. |
protected void |
setRowDefFullName(java.lang.String objFullName)
|
Methods inherited from class oracle.jbo.JboException |
---|
addToDetails, addToExceptions, containsException, doEntityToVOMapping, getExceptions, getSource, hasPeerExceptions, needsEntityToVOMapping, printStackTrace, printStackTrace, printStackTrace, setApplicationModule, setDetails, setExceptions, setNeedsEntityToVOMapping, setSource |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String mRowDefFullName
Constructor Detail |
---|
public ValidationException(java.lang.String message)
message
- the text of the message.public ValidationException(java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params)
resBundleClass
- a resource bundle.errorCode
- an error or message code.params
- an array of parameters for the formatted message.public ValidationException(ResourceBundleDef resBundleDef, java.lang.String errorCode, java.lang.Object[] params)
resBundleDef
- a ResourceBundleDef.errorCode
- an error or message code.params
- an array of parameters for the formatted message.public ValidationException(java.lang.String msg, java.lang.String errorCode, java.lang.Object[] params)
msg
- the unformatted text of the message.errorCode
- an error code.params
- the error message's parameters.Method Detail |
---|
public static void raise(java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, java.util.ArrayList details)
resBundleClass
- a resource bundle.errorCode
- an error or message code.params
- an array of parameters for the formatted message.details
- a detail list of exceptionspublic static void raise(java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, java.util.Vector details)
resBundleClass
- a resource bundle.errorCode
- an error or message code.params
- an array of parameters for the formatted message.details
- a detail list of exceptionspublic static void raise(java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, java.util.ArrayList details, boolean peer, boolean voEx)
resBundleClass
- a resource bundle.errorCode
- an error or message code.params
- an array of parameters for the formatted message.details
- a detail list of exceptionspeer
- indicates if this exception's peer status to be marked.voEx
- indicates if this exception is a ViewLevel Exception.public static void raiseWithNamedParameters(java.lang.Class resBundleClass, java.lang.String errorCode, java.util.Map params, java.util.ArrayList details, boolean peer, boolean voEx)
resBundleClass
- a resource bundle.errorCode
- an error or message code.params
- a map of named parameters for the formatted message.details
- a detail list of exceptionspeer
- indicates if this exception's peer status to be marked.voEx
- indicates if this exception is a ViewLevel Exception.public java.lang.String getRowDefFullName()
public ValidationException getAttributeException(java.lang.String rowDefName, java.lang.String attrName)
rowDefName
- Entity Definition name. If null only attribute name is matched.attrName
- return if this exception or one of it's details has mapping attribute
name.public boolean hasAttributeException(java.lang.String attrName)
public void setErrorParameters(java.lang.Object[] params)
setErrorParameters
in class JboWarning
public void setErrorParametersMap(java.util.Map params)
JboWarning
setErrorParametersMap
in class JboWarning
protected void setRowDefFullName(java.lang.String objFullName)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |