@FunctionalInterface
public interface InterceptionFailHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
handle(InterceptionContext context,
java.lang.Throwable error)
Handles the error.
|
static InterceptionFailHandler |
throwError()
Returns a handler that throws all exceptions.
|
java.lang.Object handle(InterceptionContext context, java.lang.Throwable error) throws java.lang.Throwable
context
- the context in which the interception failederror
- the errorjava.lang.Throwable
static InterceptionFailHandler throwError()