Class SplibRestExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
jp.ecuacion.splib.rest.advice.SplibRestExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware
@RestControllerAdvice
public class SplibRestExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
Provides ExceptionHandler.
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> handleHttpStatusException(HttpStatusException exception, org.springframework.web.context.request.WebRequest request) Handles HttpStatusException.org.springframework.web.ErrorResponsehandleThrowable(Throwable exception) Handles Throwable.Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestNotUsableException, handleAsyncRequestTimeoutException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodArgumentNotValid, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource
-
Constructor Details
-
SplibRestExceptionHandler
public SplibRestExceptionHandler()
-
-
Method Details
-
handleHttpStatusException
@ExceptionHandler(HttpStatusException.class) public org.springframework.http.ResponseEntity<?> handleHttpStatusException(HttpStatusException exception, org.springframework.web.context.request.WebRequest request) Handles HttpStatusException.- Parameters:
exception- exceptionrequest- request- Returns:
ResponseEntity<?>
-
handleThrowable
-