Class ManyRequestExceptionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.blackrook.small.exception.request.ManyRequestExceptionsException
- All Implemented Interfaces:
Serializable
public class ManyRequestExceptionsException
extends javax.servlet.ServletException
An exception that is an encapsulation of many exceptions
in the request handling chain that will either need to be logged or reported.
Throwable.getCause()
here will only return the first cause.
- Author:
- Matthew Tropiano
- See Also:
-
Constructor Summary
ConstructorDescriptionManyRequestExceptionsException
(String message) Creates a new exception.ManyRequestExceptionsException
(String message, Throwable cause) Creates a new exception with a message and primary cause. -
Method Summary
Methods inherited from class javax.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ManyRequestExceptionsException
Creates a new exception.- Parameters:
message
- the exception message.
-
ManyRequestExceptionsException
Creates a new exception with a message and primary cause.- Parameters:
message
- the exception message.cause
- the exception cause.
-
-
Method Details
-
addCause
Adds another cause to this exception.- Parameters:
cause
- the cause to add.
-
getCauses
- Returns:
- an iterable structure of the causes that make up this exception.
-