Class AggregatedException

All Implemented Interfaces:
Serializable

public class AggregatedException extends ITextException
Composite exception class.
See Also:
  • Field Details

    • ERROR_DURING_EVENT_PROCESSING

      public static final String ERROR_DURING_EVENT_PROCESSING
      Notifies that event processing failed.
      See Also:
  • Constructor Details

    • AggregatedException

      public AggregatedException (List<RuntimeException> aggregatedExceptions)
      Creates an instance of aggregated exception based on the collection of exceptions.
      Parameters:
      aggregatedExceptions - is a list of aggregated exceptions
    • AggregatedException

      public AggregatedException (String message, List<RuntimeException> aggregatedExceptions)
      Creates an instance of aggregated exception based on the collection of exceptions.
      Parameters:
      message - the detail message
      aggregatedExceptions - is a list of aggregated exceptions
  • Method Details

    • getMessage

      public String getMessage()
      Builds message for the exception including its own message and all messages from the aggregated exceptions.
      Overrides:
      getMessage in class Throwable
      Returns:
      aggregated message
    • getAggregatedExceptions

      public List<Exception> getAggregatedExceptions()
      Gets a list of aggregated exceptions.
      Returns:
      aggregated exceptions