| Modifier and Type | Field and Description |
|---|---|
| private final ReentrantLock | |
| private boolean | |
| private static final long | serialVersionUID
Hides org. |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MultiException(List<Throwable>
A non-null, non-empty list of exceptions ths)This list must have at least one element in it. |
| public | MultiException(Throwable
May not be null th, boolean reportToErrorService)This allows for construction of a MultiException with one element in its list |
| public | MultiException(Throwable
May not be null th)This allows for construction of a MultiException with one element in its list |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List | Returns: All the errors associated with this MultiException. Will not return null, but may return an empty objectGets all the errors associated with this MultiException |
| public String | getMessage()
Overrides java. Gets the message associated with this exception |
| public boolean | Returns: true if this exception should be reported to the error service when creating or deleting a serviceReturns true if this exception should be reported to the error service when thrown during a creation or deletion of a service |
| public void | printStackTrace(PrintStream s)
Overrides java. Prints the stack trace of this exception to the given PrintStream |
| public void | printStackTrace(PrintWriter s)
Overrides java. Prints the stack trace of this exception to the given PrintWriter |
| public void | setReportToErrorService(boolean
true if this exception should be reported to
the error service when creating or deleting a service report)Sets if this exception should be reported to the error service when thrown during a creation or deletion of a service |
| public String |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| reportToErrorService | back to summary |
|---|---|
| private boolean reportToErrorService | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| throwables | back to summary |
|---|---|
| private final List<Throwable> throwables | |
| MultiException | back to summary |
|---|---|
| public MultiException() Creates an empty MultiException | |
| MultiException | back to summary |
|---|---|
| public MultiException(List<Throwable> ths) This list must have at least one element in it. The first element of the list will become the cause of this exception, and its message will become the message of this exception | |
| MultiException | back to summary |
|---|---|
| public MultiException(Throwable th, boolean reportToErrorService) This allows for construction of a MultiException with one element in its list
| |
| MultiException | back to summary |
|---|---|
| public MultiException(Throwable th) This allows for construction of a MultiException with one element in its list
| |
| addError | back to summary |
|---|---|
| public void addError(Throwable error) Adds an error to an existing exception
| |
| getErrors | back to summary |
|---|---|
| public List Gets all the errors associated with this MultiException | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Gets the message associated with this exception | |
| getReportToErrorService | back to summary |
|---|---|
| public boolean getReportToErrorService() Returns true if this exception should be reported to the error service when thrown during a creation or deletion of a service
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream s) Overrides java. Prints the stack trace of this exception to the given PrintStream | |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter s) Overrides java. Prints the stack trace of this exception to the given PrintWriter | |
| setReportToErrorService | back to summary |
|---|---|
| public void setReportToErrorService(boolean report) Sets if this exception should be reported to the error service when thrown during a creation or deletion of a service
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |