@ThreadSafe public class MultiException extends RuntimeException
Constructor and Description |
---|
MultiException() |
Modifier and Type | Method and Description |
---|---|
void |
add(Throwable throwable) |
String |
getMessage() |
boolean |
isEmpty() |
void |
throwIfNotEmpty()
If this
MultiException is empty then no action is taken,
if it contains a single Throwable that is thrown,
otherwise this MultiException is thrown. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public boolean isEmpty()
public void throwIfNotEmpty()
MultiException
is empty then no action is taken,
if it contains a single Throwable
that is thrown,
otherwise this MultiException
is thrown.public String getMessage()
getMessage
in class Throwable
Copyright © 2017. All rights reserved.