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.RuntimeExceptionAn implementation ofExceptioncollecting 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.StringgetMessage()
-
-
-
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)
-
-