-
- All Implemented Interfaces:
-
java.io.Serializable
public final class MultipleException extends RuntimeException
Exception with a list of causes. Cause is
nullas it can't be tell which one of the list is the cause.A coded multiple exception should be created this way: CodedException(400, "Many errors", MultipleException())
To pass a list of causes CodedException (500, "Error", *list)
TODO.
-
-
Constructor Summary
Constructors Constructor Description MultipleException(Throwable causes)MultipleException(String message, List<Throwable> causes)MultipleException(String message, Throwable causes)MultipleException(List<Throwable> causes, String message)
-
Method Summary
Modifier and Type Method Description final List<Throwable>getCauses()ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-