Class MonetaryPovertyControllerAdvice
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
com.samupert.univpm.eurostat.monetary.poverty.controller.MonetaryPovertyControllerAdvice
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
@RestControllerAdvice(assignableTypes=MonetaryPovertyController.class)
public class MonetaryPovertyControllerAdvice
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
Exception handler for the Monetary Poverty Controller.
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<Object>
handleHttpMessageNotReadable
(org.springframework.http.converter.HttpMessageNotReadableException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<ApiErrorResponse>
Handles thrownInvalidFilterException
.Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource
-
Constructor Details
-
MonetaryPovertyControllerAdvice
public MonetaryPovertyControllerAdvice()
-
-
Method Details
-
handleHttpMessageNotReadable
protected org.springframework.http.ResponseEntity<Object> handleHttpMessageNotReadable(@NonNull org.springframework.http.converter.HttpMessageNotReadableException ex, @NonNull org.springframework.http.HttpHeaders headers, @NonNull org.springframework.http.HttpStatusCode status, @NonNull org.springframework.web.context.request.WebRequest request) - Overrides:
handleHttpMessageNotReadable
in classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
handleInvalidFilterException
@ExceptionHandler(InvalidFilterException.class) public org.springframework.http.ResponseEntity<ApiErrorResponse> handleInvalidFilterException(@NonNull InvalidFilterException e) Handles thrownInvalidFilterException
.- Parameters:
e
- The exception to handle.- Returns:
- The API error response entity.
-