Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


oracle.adfmf.framework.exception
Class AdfInvocationRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.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 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

CATEGORY_WEBSERVICE

public static final java.lang.String CATEGORY_WEBSERVICE
String constants for Category values for web service related exceptions
See Also:
Constant Field Values

CATEGORY_BEAN

public static final java.lang.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(java.lang.String message,
                                     java.lang.String severity,
                                     java.lang.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(java.lang.Throwable t,
                                     java.lang.String severity,
                                     java.lang.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 java.lang.String getErrorCategory()
Get error category from the exception object
Returns:
error category

setErrorCategory

public void setErrorCategory(java.lang.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 java.lang.Object toJSON()
                        throws java.lang.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:
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.