Package io.smallrye.mutiny
Class CompositeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.smallrye.mutiny.CompositeException
-
- All Implemented Interfaces:
java.io.Serializable
public class CompositeException extends java.lang.RuntimeException
An implementation ofException
collecting several causes. This class is used to collect multiple failures. UsesgetCauses()
to retrieves the individual causes.Throwable.getCause()
returns the first cause. Causes, except the first one, are stored as suppressed exception.- See Also:
UniAndGroup
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeException(CompositeException other, java.lang.Throwable toBeAppended)
CompositeException(java.lang.Throwable... causes)
CompositeException(java.util.List<java.lang.Throwable> causes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Throwable>
getCauses()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
CompositeException
public CompositeException(java.util.List<java.lang.Throwable> causes)
-
CompositeException
public CompositeException(java.lang.Throwable... causes)
-
CompositeException
public CompositeException(CompositeException other, java.lang.Throwable toBeAppended)
-
-