public class MultiException extends Exception
| 构造器和说明 |
|---|
MultiException() |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public 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 © 2017. All rights reserved.