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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<?>
    handleHttpStatusException(HttpStatusException exception, org.springframework.web.context.request.WebRequest request)
    Handles HttpStatusException.
    org.springframework.web.ErrorResponse
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - exception
      request - request
      Returns:
      ResponseEntity<?>
    • handleThrowable

      @ExceptionHandler(Throwable.class) public org.springframework.web.ErrorResponse handleThrowable(Throwable exception)
      Handles Throwable.
      Parameters:
      exception - exception
      Returns:
      ErrorResponse