Package org.vrspace.server.api
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
-
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>
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
-
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 classorg.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 classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-