Class ExceptionHandlers
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- org.craftercms.social.management.web.controllers.ExceptionHandlers
-
@ControllerAdvice public class ExceptionHandlers extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandlerControllerAdvicefor controllers that includes exception handling for all exceptions.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)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)org.springframework.http.ResponseEntity<Object>handleInvalidRequestParameterException(InvalidRequestParameterException e, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<Object>handleProfileException(org.craftercms.profile.api.exceptions.ProfileException e, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<Object>handleProfileRestServiceException(org.craftercms.profile.exceptions.ProfileRestServiceException e, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<Object>handleResourceNotFoundException(ResourceNotFoundException e, org.springframework.web.context.request.WebRequest request)-
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
-
-
-
-
Method Detail
-
handleResourceNotFoundException
@ExceptionHandler(ResourceNotFoundException.class) public org.springframework.http.ResponseEntity<Object> handleResourceNotFoundException(ResourceNotFoundException e, org.springframework.web.context.request.WebRequest request)
-
handleInvalidRequestParameterException
@ExceptionHandler(InvalidRequestParameterException.class) public org.springframework.http.ResponseEntity<Object> handleInvalidRequestParameterException(InvalidRequestParameterException e, org.springframework.web.context.request.WebRequest request)
-
handleProfileRestServiceException
@ExceptionHandler(org.craftercms.profile.exceptions.ProfileRestServiceException.class) public org.springframework.http.ResponseEntity<Object> handleProfileRestServiceException(org.craftercms.profile.exceptions.ProfileRestServiceException e, org.springframework.web.context.request.WebRequest request)
-
handleProfileException
@ExceptionHandler(org.craftercms.profile.api.exceptions.ProfileException.class) public org.springframework.http.ResponseEntity<Object> handleProfileException(org.craftercms.profile.api.exceptions.ProfileException e, org.springframework.web.context.request.WebRequest request)
-
handleExceptionInternal
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)
- Overrides:
handleExceptionInternalin classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
handleExceptionInternal
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
-
-