Class AggregatedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AggregatedException
    extends ITextException
    Composite exception class.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AggregatedException​(java.lang.String message, java.util.List<java.lang.RuntimeException> aggregatedExceptions)
      Creates an instance of aggregated exception based on the collection of exceptions.
      AggregatedException​(java.util.List<java.lang.RuntimeException> aggregatedExceptions)
      Creates an instance of aggregated exception based on the collection of exceptions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Exception> getAggregatedExceptions()
      Gets a list of aggregated exceptions.
      java.lang.String getMessage()
      Builds message for the exception including its own message and all messages from the aggregated exceptions.
      • 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
    • Field Detail

      • ERROR_DURING_EVENT_PROCESSING

        public static final java.lang.String ERROR_DURING_EVENT_PROCESSING
        Notifies that event processing failed.
        See Also:
        Constant Field Values
      • AGGREGATED_MESSAGE

        private static final java.lang.String AGGREGATED_MESSAGE
        See Also:
        Constant Field Values
      • aggregatedExceptions

        private final java.util.List<java.lang.RuntimeException> aggregatedExceptions
    • Constructor Detail

      • AggregatedException

        public AggregatedException​(java.util.List<java.lang.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​(java.lang.String message,
                                   java.util.List<java.lang.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 Detail

      • getMessage

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

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