public class MultiException
extends java.lang.Exception
| Constructor and Description |
|---|
MultiException() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Throwable e) |
java.lang.Throwable |
getThrowable(int i) |
java.util.List<java.lang.Throwable> |
getThrowables() |
void |
ifExceptionThrow()
Throw a multiexception.
|
void |
ifExceptionThrowMulti()
Throw a multiexception.
|
void |
ifExceptionThrowRuntime()
Throw a Runtime exception.
|
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream out) |
void |
printStackTrace(java.io.PrintWriter out) |
int |
size() |
java.lang.String |
toString() |
public void add(java.lang.Throwable e)
public int size()
public java.util.List<java.lang.Throwable> getThrowables()
public java.lang.Throwable getThrowable(int i)
public void ifExceptionThrow()
throws java.lang.Exception
java.lang.Exceptionpublic void ifExceptionThrowRuntime()
throws java.lang.Error
java.lang.Error - If this exception contains exactly 1 Errorjava.lang.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
MultiExceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream out)
printStackTrace in class java.lang.ThrowableThrowable.printStackTrace(java.io.PrintStream)public void printStackTrace(java.io.PrintWriter out)
printStackTrace in class java.lang.ThrowableThrowable.printStackTrace(java.io.PrintWriter)Copyright © 2013 FuseSource, Corp.. All Rights Reserved.