T - The concrete type of Throwable that will be handled by the object implementing this interface.E - The concrete type of entity being sent in the handling result.@FunctionalInterface public interface ExceptionHandler<T extends Throwable,E>
Throwable.
In order to register a concrete implementation of this interface in the ErrorHandler,
the implementing class must be annotated with
ExceptionHandlerObject.ExceptionHandlerObject,
ErrorHandler,
EnableErrorHandler| Modifier and Type | Method and Description |
|---|---|
HandlingResult<E> |
handle(T exception)
Handles the given
exception. |
HandlingResult<E> handle(T exception)
exception.exception - The exception to be handled.HandlingResult of handling the given exception.Copyright © 2018. All rights reserved.