public class ErrorHandlerImpl extends Object implements ErrorHandler, org.springframework.beans.factory.InitializingBean
ErrorHandler.| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<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. |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic <T extends Throwable,E> HandlingResult<E> handle(T exception)
ErrorHandlerexception,
returning as a result an object with the data to be returned to the API consumer.handle in interface ErrorHandlerT - 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.