|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
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 String |
CATEGORY_BEAN
String constants for Category values for Java bean related exceptions |
static 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(String message,
String severity,
String errorCategory,
int errorCode)
AdfInvocationRuntimeException constructor |
|
AdfInvocationRuntimeException(Throwable t,
String severity,
String errorCategory,
int errorCode)
AdfInvocationRuntimeException constructor |
Method Summary | |
---|---|
String |
getErrorCategory()
Get error category from the exception object |
int |
getErrorCode()
Get error code from the exception object |
void |
setErrorCategory(String errorCategory)
Set error category to the exception object |
void |
setErrorCode(int errorCode)
Set error code from the exception object |
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 Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CATEGORY_WEBSERVICE
public static final String CATEGORY_BEAN
public static final int BEAN_INVOKE_ERROR
Constructor Detail |
---|
public AdfInvocationRuntimeException()
public AdfInvocationRuntimeException(String message, String severity, 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(Throwable t, String severity, 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 String getErrorCategory()
public void setErrorCategory(String errorCategory)
errorCategory
- public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- public Object toJSON() throws Exception
toJSON
in interface JSONSerializable
toJSON
in class AdfException
Exception
|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |