cadrumo.domain.transactions.errors module¶
Canonical domain exceptions for cadrumo.domain.transactions.
- exception TransactionError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorBase error for every transaction-catalogue failure.
- Parameters:
- Return type:
None
- code¶
- exception TransactionCatalogueError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when a transaction catalogue is invalid or inconsistent.
- Parameters:
- Return type:
None
- code¶
- exception TransactionPersistenceError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionCatalogueErrorRaised when catalogue persistence cannot be completed.
- Parameters:
- Return type:
None
- code¶
- exception StoredTransactionDriftError(bucket_id, error)[source]¶
Bases:
TransactionPersistenceErrorRaised when a persisted transaction catalogue fails schema validation on load.
Mirrors
StoredProfileDriftError: the catalogue was valid when written; schema evolution or an out-of-band edit caused the on-disk envelope payload to drift from the currentTransactionCatalogueschema. The originalpydantic.ValidationErroris preserved onoriginal_exceptionso callers can inspect the typed field errors without losing the deserialization detail.- Variables:
bucket_id – Identifier of the bucket whose catalogue drifted.
original_exception – The underlying
pydantic.ValidationError.
- Parameters:
bucket_id (str)
error (ValidationError)
- Return type:
None
- code¶
- exception LedgerStorageError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionPersistenceErrorRaised when bucket-scoped ledger storage cannot be resolved or used.
- Parameters:
- Return type:
None
- code¶
- exception LedgerNoActiveBucketError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
LedgerStorageErrorRaised when a ledger operation requires an active profile bucket.
- Parameters:
- Return type:
None
- code¶
- exception TransactionNotFoundError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionCatalogueErrorRaised when a catalogue lookup targets a missing transaction.
- Parameters:
- Return type:
None
- code¶
- exception TransactionIdPrefixError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionCatalogueErrorRaised when a transaction-id prefix matches zero or multiple transactions.
- Parameters:
- Return type:
None
- code¶
- exception LLMClassifierError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when an LLM classification attempt fails.
- Parameters:
- Return type:
None
- code¶
- exception TransactionValidationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised on invalid transaction field values.
- Parameters:
- Return type:
None
- code¶
- exception LedgerLinkError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when linking a ledger transaction to a modelo binding fails.
- Parameters:
- Return type:
None
- code¶
- exception LedgerCheckError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when a ledger consistency check surfaces a blocking finding.
- Parameters:
- Return type:
None
- code¶
- exception LedgerPreflightError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when ledger preflight rejects a modelo run as un-fileable.
- Parameters:
- Return type:
None
- code¶
- exception ClassificationRuleError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TransactionErrorRaised when a ledger classification rule is invalid.
Pydantic field validators translate this registered failure to
ValueErrorat their narrow protocol boundary.- Parameters:
- Return type:
None
- code¶