mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
22 lines
579 B
Python
22 lines
579 B
Python
from bigchaindb.exceptions import BigchainDBError
|
|
|
|
|
|
class BackendError(BigchainDBError):
|
|
"""Top level exception for any backend exception."""
|
|
|
|
|
|
class ConnectionError(BackendError):
|
|
"""Exception raised when the connection to the backend fails."""
|
|
|
|
|
|
class AuthenticationError(ConnectionError):
|
|
"""Exception raised when MongoDB Authentication fails"""
|
|
|
|
|
|
class OperationError(BackendError):
|
|
"""Exception raised when a backend operation fails."""
|
|
|
|
|
|
class DuplicateKeyError(OperationError):
|
|
"""Exception raised when an insert fails because the key is not unique"""
|