java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aoapps.lang.exception.WrappedExceptions
- All Implemented Interfaces:
Serializable
Wraps multiple exceptions into one.
ErrorPrinter
will unwrap each exception
into a single exception report. Any exception provided more than once will
only be stored once. The first exception is also passed to Throwable.initCause(java.lang.Throwable)
.
Any null
exception is ignored.- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedExceptions
(String message, Throwable... causes) WrappedExceptions
(Throwable... causes) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrappedExceptions
-
WrappedExceptions
-
-
Method Details
-
getCauses
Gets the unmodifiable list of causes. The first cause is also the value returned from getCause();- Returns:
- No defensive copy
-