@ControllerAdvice
public class ExceptionHandlers
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
ControllerAdvice
for controllers that includes exception
handling for all known exceptions.Constructor and Description |
---|
ExceptionHandlers() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.http.ResponseEntity<Object> |
handleExceptionInternal(Exception ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleExceptionInternal(Exception ex,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleExceptionInternal(Exception ex,
Object body,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleInvalidRequestParameterException(InvalidRequestParameterException e,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleProfileException(ProfileException e,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleProfileRestServiceException(ProfileRestServiceException e,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleResourceNotFoundException(ResourceNotFoundException e,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleUnauthorizedException(org.craftercms.commons.security.exception.ActionDeniedException e,
org.springframework.web.context.request.WebRequest request) |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException, handleTypeMismatch
@ExceptionHandler(value=ResourceNotFoundException.class) public org.springframework.http.ResponseEntity<Object> handleResourceNotFoundException(ResourceNotFoundException e, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=InvalidRequestParameterException.class) public org.springframework.http.ResponseEntity<Object> handleInvalidRequestParameterException(InvalidRequestParameterException e, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=ProfileRestServiceException.class) public org.springframework.http.ResponseEntity<Object> handleProfileRestServiceException(ProfileRestServiceException e, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=ProfileException.class) public org.springframework.http.ResponseEntity<Object> handleProfileException(ProfileException e, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=org.craftercms.commons.security.exception.ActionDeniedException.class) public org.springframework.http.ResponseEntity<Object> handleUnauthorizedException(org.craftercms.commons.security.exception.ActionDeniedException e, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleExceptionInternal
in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
Copyright © 2023 CrafterCMS. All rights reserved.