Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adfmf.framework.exception
Class AdfInvocationRuntimeException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by oracle.adfmf.framework.exception.AdfException
                  extended by oracle.adfmf.framework.exception.AdfInvocationRuntimeException
All Implemented Interfaces:
java.io.Serializable, JSONSerializable

public class AdfInvocationRuntimeException
extends AdfException

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.

See Also:
AdfInvocationException, Serialized Form

Field 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

CATEGORY_WEBSERVICE

public static final String CATEGORY_WEBSERVICE
String constants for Category values for web service related exceptions

See Also:
Constant Field Values

CATEGORY_BEAN

public static final String CATEGORY_BEAN
String constants for Category values for Java bean related exceptions

See Also:
Constant Field Values

BEAN_INVOKE_ERROR

public static final int BEAN_INVOKE_ERROR
Error Code Value for Bean Invoke Error

See Also:
Constant Field Values
Constructor Detail

AdfInvocationRuntimeException

public AdfInvocationRuntimeException()
Default no argument AdfInvocationRuntimeException constructor


AdfInvocationRuntimeException

public AdfInvocationRuntimeException(String message,
                                     String severity,
                                     String errorCategory,
                                     int errorCode)
AdfInvocationRuntimeException constructor

Parameters:
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_BEAN
errorCode - Error code for the error message.

AdfInvocationRuntimeException

public AdfInvocationRuntimeException(Throwable t,
                                     String severity,
                                     String errorCategory,
                                     int errorCode)
AdfInvocationRuntimeException constructor

Parameters:
t - Throwable to create AdfInvocationRuntimeException object
severity - Severity of the exception (Use AdfException Severity constants - INFO, WARNING, ERROR)
errorCategory - Error Category for the error message, eg. CATEGORY_WEBSERVICE, CATEGORY_BEAN
errorCode - Error code for the error message.
Method Detail

getErrorCategory

public String getErrorCategory()
Get error category from the exception object

Returns:
error category

setErrorCategory

public void setErrorCategory(String errorCategory)
Set error category to the exception object

Parameters:
errorCategory -

getErrorCode

public int getErrorCode()
Get error code from the exception object

Returns:
error code

setErrorCode

public void setErrorCode(int errorCode)
Set error code from the exception object

Parameters:
errorCode -

toJSON

public Object toJSON()
              throws Exception
Method to convert AdfInvocationRuntimeException object into JSON. Need this method as AdfInvocationRuntimeException extends AdfException and AdfException implements JSONSerializable

Specified by:
toJSON in interface JSONSerializable
Overrides:
toJSON in class AdfException
Returns:
Object
Throws:
Exception

Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.