|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.3.0) E27204-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.adfmf.framework.exception.AdfException
oracle.adfmf.framework.exception.AdfInvocationRuntimeException
public class AdfInvocationRuntimeException
Extension of AdfException that adds a category and an error code for better handling of web service and bean DC invocation problems. This is a non checked exception. See AdfInvocationException for checked exception which duplicates the public getters of this class hierarchy to force developers to handle it anywhere in their code that calls AdfmfJavaUtilities.invokeDataControlMethod. The non checked version tunnels up through the framework and is repackaged into the checked version.
AdfInvocationException
, Serialized FormField Summary | |
---|---|
static int |
BEAN_INVOKE_ERROR Error Code Value for Bean Invoke Error |
static java.lang.String |
CATEGORY_BEAN String constants for Category values for Java bean related exceptions |
static java.lang.String |
CATEGORY_WEBSERVICE String constants for Category values for web service related exceptions |
Fields inherited from class oracle.adfmf.framework.exception.AdfException |
---|
ERROR, FATAL, INFO, WARNING |
Constructor Summary | |
---|---|
AdfInvocationRuntimeException() Default no argument AdfInvocationRuntimeException constructor |
|
AdfInvocationRuntimeException(java.lang.String message, java.lang.String severity, java.lang.String errorCategory, int errorCode) AdfInvocationRuntimeException constructor |
|
AdfInvocationRuntimeException(java.lang.Throwable t, java.lang.String severity, java.lang.String errorCategory, int errorCode) AdfInvocationRuntimeException constructor |
Method Summary | |
---|---|
java.lang.String |
getErrorCategory() Get error category from the exception object |
int |
getErrorCode() Get error code from the exception object |
void |
setErrorCategory(java.lang.String errorCategory) Set error category to the exception object |
void |
setErrorCode(int errorCode) Set error code from the exception object |
java.lang.Object |
toJSON() Method to convert AdfInvocationRuntimeException object into JSON. |
Methods inherited from class oracle.adfmf.framework.exception.AdfException |
---|
getMessage, getSeverity, getType, isException, setException, setMessage, setSeverity, setType, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CATEGORY_WEBSERVICE
public static final java.lang.String CATEGORY_BEAN
public static final int BEAN_INVOKE_ERROR
Constructor Detail |
---|
public AdfInvocationRuntimeException()
public AdfInvocationRuntimeException(java.lang.String message, java.lang.String severity, java.lang.String errorCategory, int errorCode)
message
- Actual error message.severity
- Severity of the exception (Use AdfException Severity constants - INFO, WARNING, ERROR)errorCategory
- Error Category for the error message, eg. CATEGORY_WEBSERVICE, CATEGORY_BEANerrorCode
- Error code for the error message.public AdfInvocationRuntimeException(java.lang.Throwable t, java.lang.String severity, java.lang.String errorCategory, int errorCode)
t
- Throwable to create AdfInvocationRuntimeException objectseverity
- Severity of the exception (Use AdfException Severity constants - INFO, WARNING, ERROR)errorCategory
- Error Category for the error message, eg. CATEGORY_WEBSERVICE, CATEGORY_BEANerrorCode
- Error code for the error message.Method Detail |
---|
public java.lang.String getErrorCategory()
public void setErrorCategory(java.lang.String errorCategory)
errorCategory
-public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
-public java.lang.Object toJSON() throws java.lang.Exception
toJSON
in interface JSONSerializable
toJSON
in class AdfException
java.lang.Exception
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.3.0) E27204-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |