public abstract static class WithFailures.ExceptionElement<T>
extends java.lang.Object
Exception handlers may want to re-raise the exception and catch only specific subclasses in order to limit the scope of handled exceptions or access subclass-specific data.
Constructor and Description |
---|
ExceptionElement() |
Modifier and Type | Method and Description |
---|---|
abstract T |
element() |
abstract java.lang.Exception |
exception() |
static <T> WithFailures.ExceptionElement<T> |
of(T element,
java.lang.Exception exception) |
public abstract T element()
public abstract java.lang.Exception exception()
public static <T> WithFailures.ExceptionElement<T> of(T element, java.lang.Exception exception)