@ControllerAdvice public class ExceptionHandlerAdvice extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALD_FORMAT |
static String |
VALIDATION_ERROR |
| Constructor and Description |
|---|
ExceptionHandlerAdvice() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Messages> |
handleAccessDeniedException(javax.servlet.ServletRequest request,
org.springframework.security.access.AccessDeniedException e) |
org.springframework.http.ResponseEntity<Messages> |
handleConstraintViolationException(javax.validation.ConstraintViolationException e) |
org.springframework.http.ResponseEntity<Messages> |
handleException(CompletionException e) |
org.springframework.http.ResponseEntity<Messages> |
handleException(Exception e) |
org.springframework.http.ResponseEntity<Messages> |
handleException(ParametrizedMessageException e) |
org.springframework.http.ResponseEntity<Messages> |
handleHttpMessageNotReadableException(org.springframework.http.converter.HttpMessageNotReadableException ex) |
org.springframework.http.ResponseEntity<Messages> |
handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException ex) |
org.springframework.http.ResponseEntity<Messages> |
handleHttpStatusCodeException(org.springframework.web.client.HttpStatusCodeException e) |
org.springframework.http.ResponseEntity<Messages> |
handleMethodArgumentNotValidException(org.springframework.web.bind.MethodArgumentNotValidException ex) |
org.springframework.http.ResponseEntity<Messages> |
handleMethodArgumentTypeMismatchException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e) |
org.springframework.http.ResponseEntity<Messages> |
handleMethodBindException(org.springframework.validation.BindException ex) |
org.springframework.http.ResponseEntity<Messages> |
handleUnsatisfiedServletRequestParameterException(org.springframework.web.bind.ServletRequestBindingException ex) |
public static final String VALIDATION_ERROR
public static final String INVALD_FORMAT
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleException(Exception e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleException(CompletionException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleAccessDeniedException(javax.servlet.ServletRequest request, org.springframework.security.access.AccessDeniedException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleException(ParametrizedMessageException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleHttpStatusCodeException(org.springframework.web.client.HttpStatusCodeException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleMethodArgumentTypeMismatchException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleMethodArgumentNotValidException(org.springframework.web.bind.MethodArgumentNotValidException ex)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleMethodBindException(org.springframework.validation.BindException ex)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleConstraintViolationException(javax.validation.ConstraintViolationException e)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleUnsatisfiedServletRequestParameterException(org.springframework.web.bind.ServletRequestBindingException ex)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleHttpMessageNotReadableException(org.springframework.http.converter.HttpMessageNotReadableException ex)
@ExceptionHandler @ResponseBody public org.springframework.http.ResponseEntity<Messages> handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException ex)
Copyright © 2018. All rights reserved.