Package com.itextpdf.commons.exceptions
Class AggregatedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.itextpdf.commons.exceptions.ITextException
-
- com.itextpdf.commons.exceptions.AggregatedException
-
- All Implemented Interfaces:
java.io.Serializable
public class AggregatedException extends ITextException
Composite exception class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
AGGREGATED_MESSAGE
private java.util.List<java.lang.RuntimeException>
aggregatedExceptions
static java.lang.String
ERROR_DURING_EVENT_PROCESSING
Notifies that event processing failed.
-
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.
-
-
-
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 messageaggregatedExceptions
- 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 classjava.lang.Throwable
- Returns:
- aggregated message
-
getAggregatedExceptions
public java.util.List<java.lang.Exception> getAggregatedExceptions()
Gets a list of aggregated exceptions.- Returns:
- aggregated exceptions
-
-