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, setStackTrace
public void add(Throwable e)
public int size()
public Throwable getThrowable(int i)
public void ifExceptionThrow() throws Exception
Exception
public void ifExceptionThrowRuntime() throws Error
Error
- If this exception contains exactly 1 Error
RuntimeException
- 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
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(PrintWriter out)
printStackTrace
in class Throwable
Throwable.printStackTrace(java.io.PrintWriter)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.