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 Details

    • ManyRequestExceptionsException

      public ManyRequestExceptionsException(String message)
      Creates a new exception.
      Parameters:
      message - the exception message.
    • ManyRequestExceptionsException

      public ManyRequestExceptionsException(String message, Throwable cause)
      Creates a new exception with a message and primary cause.
      Parameters:
      message - the exception message.
      cause - the exception cause.
  • Method Details

    • addCause

      public void addCause(Throwable cause)
      Adds another cause to this exception.
      Parameters:
      cause - the cause to add.
    • getCauses

      public Iterable<Throwable> getCauses()
      Returns:
      an iterable structure of the causes that make up this exception.