public class ErrorCollectionException extends Exception
ErrorCollectionException exception is thrown when multiple errors
(that are related in some way) occur. This exception typically contains some number
of more specific, individual exceptions that provide more information about the underlying errors.
For example, the ErrorCollectionException exception may be thrown when an attempt is
made to validate an invalid security realm, or when performing security data migration tasks.
In each case, the exceptions within the ErrorCollectionException exception provide the
details about what went wrong.
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Throwable exception)
Adds an exception to this collection of exceptions.
|
String |
getBaseMessage()
Gets the base message for this exception.
|
Collection |
getExceptions()
Gets the exceptions that are embedded in this collection of exceptions.
|
String |
getMessage()
Gets detail messages for all exceptions that have been added to this collection of exceptions.
|
boolean |
isEmpty()
Tests if any exceptions have been added to this collection of exceptions.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final long serialVersionUID
public Collection getExceptions()
Collection embedded in this
collection of exceptions.public boolean isEmpty()
public String getBaseMessage()
public String getMessage()
getMessage in class Throwablepublic void add(Throwable exception)
exception - the exception to be added to this collection of exceptions.