public class MultiException extends Exception
| Constructor and Description |
|---|
MultiException() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Throwable e) |
Throwable |
getThrowable(int i) |
List<Throwable> |
getThrowables() |
void |
ifExceptionThrow()
Throw a multiexception.
|
void |
ifExceptionThrowMulti()
Throw a multiexception.
|
void |
ifExceptionThrowRuntime()
Throw a Runtime exception.
|
int |
size() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic void add(Throwable e)
public int size()
public Throwable getThrowable(int i)
public void ifExceptionThrow()
throws Exception
Exception - the Error or Exception if nested is 1, or the MultiException itself if nested is more than 1.public void ifExceptionThrowRuntime()
throws Error
Error - If this exception contains exactly 1 ErrorRuntimeException - If this exception contains 1 Throwable but it is not an error,
or it contains more than 1 Throwable of any type.public void ifExceptionThrowMulti()
throws MultiException
MultiException - the multiexception if there are nested exceptionCopyright © 1995-2016 Webtide. All Rights Reserved.