- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aoapps.lang.exception.WrappedExceptions
-
- All Implemented Interfaces:
Serializable
public class WrappedExceptions extends RuntimeException
Wraps multiple exceptions into one.ErrorPrinterwill 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 toThrowable.initCause(java.lang.Throwable). Anynullexception is ignored.- Author:
- AO Industries, Inc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrappedExceptions(String message, Throwable... causes)WrappedExceptions(Throwable... causes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Throwable>getCauses()Gets the unmodifiable list of causes.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-