public class AdfInvocationRuntimeException extends AdfException
AdfInvocationException,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
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
|
ERROR, FATAL, INFO, WARNING| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMessage, getSeverity, getType, isException, setException, setMessage, setSeverity, setType, toStringpublic static final String CATEGORY_WEBSERVICE
public static final String CATEGORY_BEAN
public static final int BEAN_INVOKE_ERROR
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.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 JSONSerializabletoJSON in class AdfExceptionException