Package io.jmix.rest.impl.controller
Class RestControllerExceptionHandler
java.lang.Object
io.jmix.rest.impl.controller.RestControllerExceptionHandler
@ControllerAdvice("io.jmix.rest.impl.controller")
public class RestControllerExceptionHandler
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentAuthentication
protected DatatypeRegistry
protected Metadata
protected MetadataTools
protected static final Collection<Class>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<ConstraintViolationInfo>
getConstraintViolationInfos
(Set<jakarta.validation.ConstraintViolation<?>> violations) protected Datatype
getDatatype
(jakarta.validation.ConstraintViolation<?> violation) org.springframework.http.ResponseEntity<List<ConstraintViolationInfo>>
handleConstraintViolation
(jakarta.validation.ConstraintViolationException e) org.springframework.http.ResponseEntity<List<ConstraintViolationInfo>>
org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
handleOptimisticLockException
(jakarta.persistence.OptimisticLockException e) org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
org.springframework.http.ResponseEntity<ErrorInfo>
handleValidationException
(jakarta.validation.ValidationException e)
-
Field Details
-
SERIALIZABLE_INVALID_VALUE_TYPES
-
currentAuthentication
-
metadata
-
metadataTools
-
datatypeRegistry
-
-
Constructor Details
-
RestControllerExceptionHandler
public RestControllerExceptionHandler()
-
-
Method Details
-
handleRestAPIException
@ExceptionHandler(RestAPIException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleRestAPIException(RestAPIException e) -
handleFileClientException
@ExceptionHandler(FileTransferException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleFileClientException(FileTransferException e) -
handleConstraintViolation
@ExceptionHandler(jakarta.validation.ConstraintViolationException.class) @ResponseBody public org.springframework.http.ResponseEntity<List<ConstraintViolationInfo>> handleConstraintViolation(jakarta.validation.ConstraintViolationException e) -
handleCustomValidationException
@ExceptionHandler(CustomValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<List<ConstraintViolationInfo>> handleCustomValidationException(CustomValidationException e) -
handleValidationException
@ExceptionHandler(jakarta.validation.ValidationException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleValidationException(jakarta.validation.ValidationException e) -
handleRowLevelSecurityException
@ExceptionHandler(AccessDeniedException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleRowLevelSecurityException(AccessDeniedException e) -
handleEntityTokenException
@ExceptionHandler(EntityTokenException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleEntityTokenException(EntityTokenException e) -
handleOptimisticLockException
@ExceptionHandler(jakarta.persistence.OptimisticLockException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleOptimisticLockException(jakarta.persistence.OptimisticLockException e) -
handleDeletePolicyException
@ExceptionHandler(DeletePolicyException.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleDeletePolicyException(DeletePolicyException e) -
handleException
@ExceptionHandler(java.lang.Exception.class) @ResponseBody public org.springframework.http.ResponseEntity<ErrorInfo> handleException(Exception e) -
getConstraintViolationInfos
protected List<ConstraintViolationInfo> getConstraintViolationInfos(Set<jakarta.validation.ConstraintViolation<?>> violations) -
getDatatype
-