|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
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.adfnmc.AdfNmcException
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_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING |
Fields inherited from class oracle.adfnmc.AdfNmcException |
---|
CLASS_INSTANCE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM |
Constructor Summary | |
---|---|
ValidationException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params)
Creates a localizable exception. |
|
ValidationException(java.lang.Class callingClass,
java.lang.String callingMethod,
ResourceBundleDef resBundleDef,
java.lang.String errorCode,
java.lang.Object[] params)
Creates a localizable exception. |
|
ValidationException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String message)
Create a non-formattable exception. |
|
ValidationException(java.lang.Class callingClass,
java.lang.String callingMethod,
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 callingClass,
java.lang.String callingMethod,
java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params,
ArrayList details)
Creates a localizable exception. |
static void |
raise(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.Class resBundleClass,
java.lang.String errorCode,
java.lang.Object[] params,
ArrayList details,
boolean peer,
boolean voEx)
Creates a localizable exception. |
static void |
raise(java.lang.Class callingClass,
java.lang.String callingMethod,
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 callingClass,
java.lang.String callingMethod,
java.lang.Class resBundleClass,
java.lang.String errorCode,
Map params,
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(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 |
---|
addToExceptions, doEntityToVOMapping, getExceptions, getStringContent, hasPeerExceptions, needsEntityToVOMapping, setExceptions, setNeedsEntityToVOMapping |
Methods inherited from class oracle.adfnmc.AdfNmcException |
---|
addLogMessage, addLogMessage, getCallerInfo, getPriority, getStringContent, isFatal, printLogMessages, setFatal, setInnerException, setPriority, toLogString, toString |
Methods inherited from class java.lang.Throwable |
---|
printStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String mRowDefFullName
Constructor Detail |
---|
public ValidationException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String message)
message
- the text of the message.public ValidationException(java.lang.Class callingClass, java.lang.String callingMethod, 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(java.lang.Class callingClass, java.lang.String callingMethod, 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.Class callingClass, java.lang.String callingMethod, 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 callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, 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 callingClass, java.lang.String callingMethod, 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 callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, 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 callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, Map params, 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(Map params)
JboWarning
setErrorParametersMap
in class JboWarning
protected void setRowDefFullName(java.lang.String objFullName)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |