@FunctionalInterface public interface ErrorHandler
Throwable.
Handling an exception means getting data for the response that must be returned to the API consumer.ExceptionHandler,
ExceptionHandlerObject,
EnableErrorHandler| Modifier and Type | Method and Description |
|---|---|
<T extends Throwable,E> |
handle(T exception)
Handles the given
exception,
returning as a result an object with the data to be returned to the API consumer. |
<T extends Throwable,E> HandlingResult<E> handle(T exception)
exception,
returning as a result an object with the data to be returned to the API consumer.T - The concrete subclass type of Throwable.E - Concrete type of entity to be sent in the response.exception - The Throwable to be handled.HandlingResult with the data to be returned to the API consumer.Copyright © 2018. All rights reserved.