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

E36392-01

oracle.adfmf.framework.exception
Class AdfInvocationException

Object
  extended by Throwable
      extended by Exception
          extended by oracle.adfmf.framework.exception.AdfInvocationException
All Implemented Interfaces:
java.io.Serializable

public class AdfInvocationException
extends Exception

AdfInvocationException is the checked version of AdfInvocationRuntimeException. This duplicates the public getters of AdfInvocationRuntimeException. AdfmfJavaUtilities.invokeDataControlMethod is declared to throw this.

See Also:
AdfInvocationRuntimeException, 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
 
Constructor Summary
AdfInvocationException(AdfInvocationRuntimeException rtEx)
          AdfInvocationException constructor
 
Method Summary
 String getErrorCategory()
          Get error category from the exception object
 int getErrorCode()
          Get error code from the exception object
 String getMessage()
          Get message from the exception
 String getSeverity()
          Get severity from the exception
 String getType()
          Get type of exception
 Object toJSON()
          Method to convert AdfInvocationException object into JSON.
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
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

AdfInvocationException

public AdfInvocationException(AdfInvocationRuntimeException rtEx)
AdfInvocationException constructor

Parameters:
rtEx - AdfInvocationRuntimeException object used to create AdfInvocationException exception
Method Detail

getMessage

public String getMessage()
Get message from the exception

Overrides:
getMessage in class Throwable
Returns:
message

getSeverity

public String getSeverity()
Get severity from the exception

Returns:
severity, eg. AdfException.INFO, AdfException.WARNING, AdfException.ERROR, ..

getType

public String getType()
Get type of exception

Returns:
Exception type class name - exceptionClassName.class.getName())

getErrorCategory

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

Returns:
error category

getErrorCode

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

Returns:
error code

toJSON

public Object toJSON()
              throws Exception
Method to convert AdfInvocationException object into JSON.

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.