com.sun.rave.web.ui.appbase
Class ApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.rave.web.ui.appbase.ApplicationException
All Implemented Interfaces:
java.io.Serializable

public class ApplicationException
extends java.lang.RuntimeException

Application exception class that wraps the one or more runtime exceptions that were intercepted and cached during the execution of a particular request's lifecycle. Call the getExceptions() method to retrieve the cached exception instances.

See Also:
Serialized Form

Constructor Summary
ApplicationException()
          Construct a new exception with no additional information.
ApplicationException(java.lang.String message)
          Construct a new exception with the specified detail message.
ApplicationException(java.lang.String message, java.lang.Throwable cause)
          Construct a new exception with the specified detail message and root cause.
ApplicationException(java.lang.String message, java.lang.Throwable cause, java.util.List list)
          Construct a new exception with the specified detail message, root cause, and list of cached exceptions.
ApplicationException(java.lang.Throwable cause)
          Construct a new exception with the specified root cause.
ApplicationException(java.lang.Throwable cause, java.util.List list)
          Construct a new exception with the specified root cause and list of cached exceptions.
 
Method Summary
 java.util.List getExceptions()
          Return a List of the cached exceptions associated with this exception.
 
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

ApplicationException

public ApplicationException()

Construct a new exception with no additional information.


ApplicationException

public ApplicationException(java.lang.String message)

Construct a new exception with the specified detail message.

Parameters:
message - Detail message for this exception

ApplicationException

public ApplicationException(java.lang.String message,
                            java.lang.Throwable cause)

Construct a new exception with the specified detail message and root cause.

Parameters:
message - Detail message for this exception
cause - Root cause for this exception

ApplicationException

public ApplicationException(java.lang.Throwable cause)

Construct a new exception with the specified root cause.

Parameters:
cause - Root cause for this exception

ApplicationException

public ApplicationException(java.lang.Throwable cause,
                            java.util.List list)

Construct a new exception with the specified root cause and list of cached exceptions.

Parameters:
cause - Root cause for this exception
list - List of cached exceptions

ApplicationException

public ApplicationException(java.lang.String message,
                            java.lang.Throwable cause,
                            java.util.List list)

Construct a new exception with the specified detail message, root cause, and list of cached exceptions.

Parameters:
message - Detail message for this exception
cause - Root cause for this exception
list - List of cached exceptions
Method Detail

getExceptions

public java.util.List getExceptions()

Return a List of the cached exceptions associated with this exception. If no such exceptions were associated, return null instead.