public class CompositeException extends RuntimeException
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.UniAndGroup,
Serialized Form| Constructor and Description |
|---|
CompositeException(CompositeException other,
Throwable toBeAppended) |
CompositeException(List<Throwable> causes) |
CompositeException(Throwable... causes) |
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
getCauses() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CompositeException(Throwable... causes)
public CompositeException(CompositeException other, Throwable toBeAppended)
public String getMessage()
getMessage in class ThrowableCopyright © 2019–2020 SmallRye. All rights reserved.