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.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream out) |
void |
printStackTrace(PrintWriter out) |
int |
size() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTracepublic void add(Throwable e)
public int size()
public Throwable getThrowable(int i)
public void ifExceptionThrow()
throws Exception
Exceptionpublic 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
MultiExceptionpublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in class ThrowableThrowable.printStackTrace(java.io.PrintStream)public void printStackTrace(PrintWriter out)
printStackTrace in class ThrowableThrowable.printStackTrace(java.io.PrintWriter)Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.