org.apache.shale.view
Class ApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shale.view.ApplicationException
All Implemented Interfaces:
Serializable

public class ApplicationException
extends RuntimeException

Runtime exception encapsulating a List of exceptions that have occurred during the request processing lifecycle.

Since:
1.0.3
See Also:
Serialized Form

Constructor Summary
ApplicationException()
          Construct an exception with no message.
ApplicationException(List exceptions)
          Construct an exception with the specified List of causes.
ApplicationException(String message)
          Construct an exception with the specified message.
ApplicationException(String message, Throwable cause)
          Construct an exception with the specified message and cause.
ApplicationException(Throwable cause)
          Construct an exception with the specified cause.
 
Method Summary
 List getExceptions()
          Return a List of exceptoins that are the cumulative cause of 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 an exception with no message.


ApplicationException

public ApplicationException(String message)

Construct an exception with the specified message.

Parameters:
message - The exception message

ApplicationException

public ApplicationException(String message,
                            Throwable cause)

Construct an exception with the specified message and cause.

Parameters:
message - The exception message
cause - The root cause

ApplicationException

public ApplicationException(Throwable cause)

Construct an exception with the specified cause.

Parameters:
cause - The root cause

ApplicationException

public ApplicationException(List exceptions)

Construct an exception with the specified List of causes. The first exception in the list will be logged as the formal cause of this exception.

Parameters:
exceptions - List of exceptions that have been thrown
Method Detail

getExceptions

public List getExceptions()

Return a List of exceptoins that are the cumulative cause of this exception.



Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.