Skip navigation links


com.essbase.eas.framework.defs
Class FrameworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.essbase.eas.framework.defs.FrameworkException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ApplicationException, CommandRequestException, ServiceException

public class FrameworkException
extends java.lang.Exception

generic exception class that provides a base for all framework exception classes.

Since:
6.5.2
Version:
6.5.2, 10/01/02
Author:
Hank Cox
See Also:
Serialized Form

Constructor Summary
FrameworkException()
          Constructs a FrameworkException with no specified detail message.
FrameworkException(java.lang.String s)
          Constructs a FrameworkException with the specified detail message.
FrameworkException(java.lang.String s, java.lang.Throwable t)
          Constructs a FrameworkException based on another throwable object with a specific message of its own.
FrameworkException(java.lang.Throwable t)
          Constructs a FrameworkException based on another throwable object.

 

Method Summary
static FrameworkException createException(java.lang.Class c, java.util.ResourceBundle b, java.lang.String key, java.lang.Throwable t)
          Creates an instance of FrameworkException class, using a resource bundle and a key to retrieve the message used in the exception.
 java.lang.Throwable getReason()
          Returns the underlying exception that is the reason for this exception being thrown.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

FrameworkException

public FrameworkException()
Constructs a FrameworkException with no specified detail message. Places information about this exception in the log.

FrameworkException

public FrameworkException(java.lang.String s)
Constructs a FrameworkException with the specified detail message. Places information about this exception in the log.
Parameters:
s - the detail message

FrameworkException

public FrameworkException(java.lang.Throwable t)
Constructs a FrameworkException based on another throwable object. Has no message of its own. Places information about this exception in the log.
Parameters:
t - a throwable object that was caught before this FrameworkException object was created and thrown.

FrameworkException

public FrameworkException(java.lang.String s,
                          java.lang.Throwable t)
Constructs a FrameworkException based on another throwable object with a specific message of its own. Places information about this exception in the log.
Parameters:
s - the detail message
t - a throwable object that was caught before this FrameworkException object was created and thrown.

Method Detail

createException

public static FrameworkException createException(java.lang.Class c,
                                                 java.util.ResourceBundle b,
                                                 java.lang.String key,
                                                 java.lang.Throwable t)
Creates an instance of FrameworkException class, using a resource bundle and a key to retrieve the message used in the exception. Some guesses are made if any of the parameters are incorrect.
Parameters:
c - the class representing the exception to create
b - the resource bundle to use
key - the key to look for in the resource bundle
t - throwable
Returns:
a FrameworkException derived object properly initialized.

getReason

public final java.lang.Throwable getReason()
Returns the underlying exception that is the reason for this exception being thrown.
Returns:
a Throwable object if there was an underlying reason for this exception; null if there isn't one.

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.