@ControllerAdvice(value="com.haulmont.restapi.controllers")
public class RestControllerExceptionHandler
extends java.lang.Object
Constructor and Description |
---|
RestControllerExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> |
handleConstraintViolation(javax.validation.ConstraintViolationException e) |
org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> |
handleCustomValidationException(CustomValidationException e) |
org.springframework.http.ResponseEntity<ErrorInfo> |
handleException(java.lang.Exception e) |
org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> |
handleMethodParametersViolation(MethodParametersValidationException e) |
org.springframework.http.ResponseEntity<ErrorInfo> |
handleMethodResultValidationException(MethodResultValidationException e) |
org.springframework.http.ResponseEntity<ErrorInfo> |
handleRestAPIException(RestAPIException e) |
org.springframework.http.ResponseEntity<ErrorInfo> |
handleRowLevelSecurityException(RowLevelSecurityException e) |
org.springframework.http.ResponseEntity<ErrorInfo> |
handleValidationException(javax.validation.ValidationException e) |
@ExceptionHandler(value=RestAPIException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleRestAPIException(RestAPIException e)
@ExceptionHandler(value=MethodResultValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleMethodResultValidationException(MethodResultValidationException e)
@ExceptionHandler(value=MethodParametersValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> handleMethodParametersViolation(MethodParametersValidationException e)
@ExceptionHandler(value=javax.validation.ConstraintViolationException.class) @ResponseBody public org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> handleConstraintViolation(javax.validation.ConstraintViolationException e)
@ExceptionHandler(value=CustomValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<java.util.List<ConstraintViolationInfo>> handleCustomValidationException(CustomValidationException e)
@ExceptionHandler(value=javax.validation.ValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleValidationException(javax.validation.ValidationException e)
@ExceptionHandler(value=RowLevelSecurityException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleRowLevelSecurityException(RowLevelSecurityException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleException(java.lang.Exception e)