public final class MultiRuntimeException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<? extends java.lang.Throwable> |
throwables |
| Modifier | Constructor and Description |
|---|---|
private |
MultiRuntimeException(java.lang.String message,
java.util.List<? extends java.lang.Throwable> throwables) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends java.lang.Throwable> |
getThrowables()
Returns the list of throwables that are wrapped in this exception.
|
static void |
mayThrow(java.lang.String message,
java.util.List<? extends java.lang.Throwable> throwables)
Helper method that receives a (non-null) message and (non-null) list of throwable, and following happens:
if list is empty - nothing
if list not empty -
MultiRuntimeException is thrown wrapping all elements
|
private MultiRuntimeException(java.lang.String message,
java.util.List<? extends java.lang.Throwable> throwables)
public java.util.List<? extends java.lang.Throwable> getThrowables()
null.public static void mayThrow(java.lang.String message,
java.util.List<? extends java.lang.Throwable> throwables)
MultiRuntimeException is thrown wrapping all elements