Class RestResponseEntityExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
de.otto.edison.oauth.configuration.RestResponseEntityExceptionHandler
@ControllerAdvice
public class RestResponseEntityExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RestResponseEntityExceptionHandler() -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Object>handleAccessDeniedException(java.lang.Exception ex, org.springframework.web.context.request.WebRequest request)Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
-
Constructor Details
-
RestResponseEntityExceptionHandler
public RestResponseEntityExceptionHandler()
-
-
Method Details
-
handleAccessDeniedException
@ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleAccessDeniedException(java.lang.Exception ex, org.springframework.web.context.request.WebRequest request)
-