Class RestControllerExceptionHandler

java.lang.Object
io.jmix.rest.impl.controller.RestControllerExceptionHandler

@ControllerAdvice("io.jmix.rest.impl.controller") public class RestControllerExceptionHandler extends Object
  • Field Details

    • SERIALIZABLE_INVALID_VALUE_TYPES

      protected static final Collection<Class> SERIALIZABLE_INVALID_VALUE_TYPES
    • currentAuthentication

      @Autowired protected CurrentAuthentication currentAuthentication
    • metadata

      @Autowired protected Metadata metadata
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • datatypeRegistry

      @Autowired protected DatatypeRegistry 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

      protected Datatype getDatatype(jakarta.validation.ConstraintViolation<?> violation)