Class CompositeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CompositeException
    extends java.lang.RuntimeException
    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:
    UniAndGroup, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Throwable> getCauses()  
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getCauses

        public java.util.List<java.lang.Throwable> getCauses()