Class DatabaseExceptionMapper


  • @ControllerAdvice
    public class DatabaseExceptionMapper
    extends Object
    • Constructor Detail

      • DatabaseExceptionMapper

        public DatabaseExceptionMapper()
    • Method Detail

      • handleDocumentNotFoundException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDocumentNotFoundException​(DocumentNotFoundException exception)
      • handleDatabaseUnauthorizedException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDatabaseUnauthorizedException​(DatabaseUnauthorizedException exception)
      • handleDocumentForbiddenException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDocumentForbiddenException​(DocumentForbiddenException exception)
      • handleDocumentConflictException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDocumentConflictException​(DocumentConflictException exception)
      • handleDocumentLockedException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDocumentLockedException​(DocumentLockedException exception)
      • invalidDefinitionException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity invalidDefinitionException​(com.fasterxml.jackson.databind.exc.InvalidDefinitionException exception)
      • handleDatabaseServiceDownException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDatabaseServiceDownException​(DatabaseServiceDownException exception)
      • handleDocumentCorruptedException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDocumentCorruptedException​(DocumentCorruptedException exception)
      • handleTenantContextRequiredException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleTenantContextRequiredException​(TenantContextRequiredException exception)
      • handleDatabaseException

        @ExceptionHandler
        public org.springframework.http.ResponseEntity handleDatabaseException​(DatabaseException exception)
      • buildResponse

        protected org.springframework.http.ResponseEntity<io.dialob.api.rest.Errors> buildResponse​(org.springframework.http.HttpStatus httpStatus,
                                                                                                   String reason)