Class ApiExceptionResolver

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.vrspace.server.api.ApiExceptionResolver
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

@ControllerAdvice(basePackages="org.vrspace") public class ApiExceptionResolver extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
  • 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
    protected org.springframework.http.ResponseEntity<Object>
    handleConflict(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
     
    protected org.springframework.http.ResponseEntity<Object>
    handleNoHandlerFoundException(org.springframework.web.servlet.NoHandlerFoundException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request)
     
    protected org.springframework.http.ResponseEntity<Object>
    handleNoResourceFoundException(org.springframework.web.servlet.resource.NoResourceFoundException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request)
     
    protected org.springframework.http.ResponseEntity<Object>
    handleSecurity(SecurityException ex, org.springframework.web.context.request.WebRequest request)
     

    Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodArgumentNotValid, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleServletRequestBindingException, handleTypeMismatch, setMessageSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ApiExceptionResolver

      public ApiExceptionResolver()
  • Method Details

    • handleConflict

      @ExceptionHandler(ApiException.class) protected org.springframework.http.ResponseEntity<Object> handleConflict(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
    • handleSecurity

      @ExceptionHandler(java.lang.SecurityException.class) protected org.springframework.http.ResponseEntity<Object> handleSecurity(SecurityException ex, org.springframework.web.context.request.WebRequest request)
    • handleNoHandlerFoundException

      protected org.springframework.http.ResponseEntity<Object> handleNoHandlerFoundException(org.springframework.web.servlet.NoHandlerFoundException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request)
      Overrides:
      handleNoHandlerFoundException in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
    • handleNoResourceFoundException

      protected org.springframework.http.ResponseEntity<Object> handleNoResourceFoundException(org.springframework.web.servlet.resource.NoResourceFoundException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request)
      Overrides:
      handleNoResourceFoundException in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler