Package io.dialob.db.spi.spring
Class DatabaseExceptionMapper
- java.lang.Object
-
- io.dialob.db.spi.spring.DatabaseExceptionMapper
-
@ControllerAdvice public class DatabaseExceptionMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabaseExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<io.dialob.api.rest.Errors>buildResponse(org.springframework.http.HttpStatus httpStatus, String reason)org.springframework.http.ResponseEntityhandleDatabaseException(DatabaseException exception)org.springframework.http.ResponseEntityhandleDatabaseServiceDownException(DatabaseServiceDownException exception)org.springframework.http.ResponseEntityhandleDatabaseUnauthorizedException(DatabaseUnauthorizedException exception)org.springframework.http.ResponseEntityhandleDocumentConflictException(DocumentConflictException exception)org.springframework.http.ResponseEntityhandleDocumentCorruptedException(DocumentCorruptedException exception)org.springframework.http.ResponseEntityhandleDocumentForbiddenException(DocumentForbiddenException exception)org.springframework.http.ResponseEntityhandleDocumentLockedException(DocumentLockedException exception)org.springframework.http.ResponseEntityhandleDocumentNotFoundException(DocumentNotFoundException exception)org.springframework.http.ResponseEntityhandleTenantContextRequiredException(TenantContextRequiredException exception)org.springframework.http.ResponseEntityinvalidDefinitionException(com.fasterxml.jackson.databind.exc.InvalidDefinitionException exception)
-
-
-
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)
-
-