Class WrappedExceptions

All Implemented Interfaces:

public class WrappedExceptions extends RuntimeException
Wraps multiple exceptions into one. ErrorPrinter will unwrap each exception into a single exception report. Any exception provided more than once will only be stored once. The first exception is also passed to Throwable.initCause(java.lang.Throwable). Any null exception is ignored.
AO Industries, Inc.
See Also:
  • Constructor Details

    • WrappedExceptions

      public WrappedExceptions(Throwable... causes)
    • WrappedExceptions

      public WrappedExceptions(String message, Throwable... causes)
  • Method Details

    • getCauses

      public List<Throwable> getCauses()
      Gets the unmodifiable list of causes. The first cause is also the value returned from getCause();
      No defensive copy