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:
Serializable
Composite exception class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final List
<RuntimeException> static final String
Notifies that event processing failed. -
Constructor Summary
ConstructorsConstructorDescriptionAggregatedException
(String message, List<RuntimeException> aggregatedExceptions) Creates an instance of aggregated exception based on the collection of exceptions.AggregatedException
(List<RuntimeException> aggregatedExceptions) Creates an instance of aggregated exception based on the collection of exceptions. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of aggregated exceptions.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
-
Field Details
-
ERROR_DURING_EVENT_PROCESSING
Notifies that event processing failed.- See Also:
-
AGGREGATED_MESSAGE
- See Also:
-
aggregatedExceptions
-
-
Constructor Details
-
AggregatedException
Creates an instance of aggregated exception based on the collection of exceptions.- Parameters:
aggregatedExceptions
- is a list of aggregated exceptions
-
AggregatedException
Creates an instance of aggregated exception based on the collection of exceptions.- Parameters:
message
- the detail messageaggregatedExceptions
- is a list of aggregated exceptions
-
-
Method Details
-
getMessage
Builds message for the exception including its own message and all messages from the aggregated exceptions.- Overrides:
getMessage
in classThrowable
- Returns:
- aggregated message
-
getAggregatedExceptions
Gets a list of aggregated exceptions.- Returns:
- aggregated exceptions
-