java.io.Serializablepublic class MultiThrowable
extends java.lang.Throwable
This class is NOT threadsafe.
| Constructor | Description |
|---|---|
MultiThrowable() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.Throwable t) |
Add a throwable to the list of wrapped throwables.
|
java.lang.Throwable |
getThrowable() |
|
java.util.List<java.lang.Throwable> |
getThrowables() |
|
int |
size() |
|
java.lang.String |
toString() |
Overrides the default implementation to provide a concatenation of the
messages associated with each of the wrapped throwables.
|
public void add(java.lang.Throwable t)
t - The throwable to addpublic java.util.List<java.lang.Throwable> getThrowables()
public java.lang.Throwable getThrowable()
null if there are no wrapped throwables, the Throwable if
there is a single wrapped throwable or the current instance of
there are multiple wrapped throwablespublic int size()
public java.lang.String toString()
toString in class java.lang.ThrowableCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.