-
- All Implemented Interfaces:
-
java.io.Serializable
public final class MultipleException extends RuntimeExceptionException 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(). -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
-
-
Method Detail
-
getCauses
final List<Throwable> getCauses()
.
-
-
-
-