public class ApplicationException extends RuntimeException
Runtime exception encapsulating a List
of exceptions that
have occurred during the request processing lifecycle.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
List |
getExceptions()
Return a
List of exceptoins that are the cumulative
cause of this exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ApplicationException()
Construct an exception with no message.
public ApplicationException(String message)
Construct an exception with the specified message.
message
- The exception messagepublic ApplicationException(String message, Throwable cause)
Construct an exception with the specified message and cause.
message
- The exception messagecause
- The root causepublic ApplicationException(Throwable cause)
Construct an exception with the specified cause.
cause
- The root causepublic 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.
exceptions
- List of exceptions that have been thrownpublic List getExceptions()
Return a List
of exceptoins that are the cumulative
cause of this exception.
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.