java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.smallrye.mutiny.CompositeException
- All Implemented Interfaces:
Serializable
An implementation of
Exception collecting several causes.
This class is used to collect multiple failures.
Uses getCauses() to retrieves the individual causes.
Throwable.getCause() returns the first cause.
Causes, except the first one, are stored as suppressed exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeException(CompositeException other, Throwable toBeAppended) CompositeException(Throwable... causes) CompositeException(List<Throwable> causes) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CompositeException
-
CompositeException
-
CompositeException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getCauses
-