Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1.4.0)

E10651-05

oracle.adf.controller
Class ControllerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.adf.controller.ControllerException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivityLogicException, AdfcUnsupportedOperationException, AuthorizationException, InvalidTaskFlowReentryException, InvalidTransportException, ParsingException, UnknownActivityTypeException

public class ControllerException
extends java.lang.RuntimeException

Exception from the ADF Controller.

See Also:
Serialized Form

Constructor Summary
ControllerException()
          Constructor.
ControllerException(ExceptionKey key)
          Constructor.
ControllerException(ExceptionKey key, java.lang.Throwable cause)
          Constructor.
ControllerException(ExceptionKey key, java.lang.Throwable cause, java.lang.Object... args)
          Constructs the ControllerException with the given error Throwable cause, message lookup key and message substitution arguments that are used for message formatting.
ControllerException(java.lang.Throwable cause)
          Constructor.
 
Method Summary
 java.lang.Throwable getCause()
          Get the root cause.
 java.lang.String getErrorId()
          Gets the id of this exception, eg.
 java.lang.String getErrorNumber()
          Gets the error number for this exception, eg.
 java.lang.String getLocalizedMessage()
          Get the Exception message, translated into the locale.
 java.lang.String getMessage()
           
static void init(java.lang.String baseName)
          Initialize the ControllerException with the base name of the resource bundle, a fully qualified class name.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControllerException

public ControllerException()
Constructor. Creates a ControllerException with the DEFAULT message.


ControllerException

public ControllerException(ExceptionKey key)
Constructor. Creates a ControllerException with the specified key.

Parameters:
key - The key to the resource bundle message.

ControllerException

public ControllerException(java.lang.Throwable cause)
Constructor. Creates a ControllerException with the specified root cause.

Parameters:
cause - The root cause of the exception.

ControllerException

public ControllerException(ExceptionKey key,
                           java.lang.Throwable cause)
Constructor. Creates a ControllerException with the specified values.

Parameters:
key - The key to the resource bundle message.
cause - The root cause of the exception.

ControllerException

public ControllerException(ExceptionKey key,
                           java.lang.Throwable cause,
                           java.lang.Object... args)
Constructs the ControllerException with the given error Throwable cause, message lookup key and message substitution arguments that are used for message formatting.

Parameters:
key - the error message lookup key
cause - parent exception that caused it
args - Object array for the messageFormatting
Method Detail

init

public static void init(java.lang.String baseName)
                 throws java.util.MissingResourceException
Initialize the ControllerException with the base name of the resource bundle, a fully qualified class name.

Parameters:
baseName - base name of the resource bundle, a fully qualified class name.
Throws:
java.util.MissingResourceException - if no resource bundle for the specified base name can be found.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Get the Exception message, translated into the locale.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
The message

getCause

public java.lang.Throwable getCause()
Get the root cause.

Overrides:
getCause in class java.lang.Throwable
Returns:
the root exception

getErrorId

public java.lang.String getErrorId()
Gets the id of this exception, eg. ADFC-12345

Returns:
the error id, in the form ADFC-xxxxx

getErrorNumber

public java.lang.String getErrorNumber()
Gets the error number for this exception, eg. 12345

Returns:
the error number.

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1.4.0)

E10651-05

Copyright © 1997, 2011, Oracle. All rights reserved.