Class AggregateRuntimeException

All Implemented Interfaces:
Serializable

public class AggregateRuntimeException extends RuntimeException
A RuntimeException that carries several underlying exceptions rather than a single cause - for example the complete set of problems found when reviewing a malformed structure, where surfacing only the first would lose information.
See Also:
  • Constructor Details

    • AggregateRuntimeException

      public AggregateRuntimeException(String message, List exceptions)
      Base constructor.
      Parameters:
      message - a message concerning the exception.
      exceptions - the underlying exceptions making up this aggregate (may be null or empty).
  • Method Details

    • getExceptions

      public List getExceptions()
      Return the exceptions that make up this aggregate.
      Returns:
      an unmodifiable list of the aggregated exceptions, in the order supplied.