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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final List<RuntimeException> static final StringNotifies 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 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:
getMessagein classThrowable- Returns:
- aggregated message
-
getAggregatedExceptions
-