castlecraft_engineer.exc
¶
castlecraft_engineer.exc
¶
AggregateNotFoundError
¶
Bases: RepositoryError
Aggregate not found.
Source code in src/castlecraft_engineer/abstractions/repository.py
AuthorizationError
¶
Bases: Exception
Custom exception for authorization failures.
Source code in src/castlecraft_engineer/authorization/base_service.py
CommandHandlerNotFoundError
¶
Bases: Exception
Raised when no handler is found for a given command type.
Source code in src/castlecraft_engineer/abstractions/command_bus.py
EventStoreConflictError
¶
Bases: RuntimeError
Raised when there's a conflict appending events, e.g., due to version mismatch.
Source code in src/castlecraft_engineer/abstractions/event_store.py
HTTPError
¶
Bases: IOError
Custom exception for HTTP errors, optionally holding the response.
Source code in src/castlecraft_engineer/common/requests.py
InvalidEncryptionFormat
¶
Bases: ValueError
Custom exception for invalid encryption format.
Source code in src/castlecraft_engineer/common/crypto.py
OptimisticConcurrencyError
¶
Bases: RepositoryError
, StaleDataError
Optimistic concurrency conflict.
Source code in src/castlecraft_engineer/abstractions/repository.py
QueryHandlerNotFoundError
¶
Bases: Exception
Raised when no handler is found for a given query type.