errors
errors
¶
The versioned memory error taxonomy, errors/1.
One list, owned here; every memory part cites it rather than restating it.
A backend raises a typed :class:MemoryBackendError subclass whose code
is the wire code the gateway returns to a musician. subtype carries the
backend-native reason (custody_violation, claim_mismatch...) and
remedy names the action that clears it.
Classes¶
ErrorCode
¶
Bases: str, Enum
The eleven errors/1 codes. Member name is the wire code.
WireError
¶
Bases: TypedDict
The error object a gateway returns for a failed memory call.
MemoryBackendError
¶
Bases: Exception
Base of every typed memory failure.
Deliberately not derived from the builtin MemoryError (which means the
interpreter ran out of RAM). Construct a subclass, never this base.
Source code in src/marianne/memory/errors.py
Unauthenticated
¶
Bases: MemoryBackendError
E1: peer credentials missing or wrong for this endpoint.
Source code in src/marianne/memory/errors.py
PermissionDenied
¶
Bases: MemoryBackendError
E2: the session lacks the permission the operation needs.
Source code in src/marianne/memory/errors.py
ScopeRefused
¶
Bases: MemoryBackendError
E3: scope expression malformed or outside the authorised scope.
Source code in src/marianne/memory/errors.py
RecallCapExceeded
¶
Bases: MemoryBackendError
E4: the dispatch's cumulative recall quota is spent.
Source code in src/marianne/memory/errors.py
BackendUnreachable
¶
Bases: MemoryBackendError
E5: the backend cannot be reached or its storage cannot be opened.
Source code in src/marianne/memory/errors.py
DeadBackend
¶
Bases: MemoryBackendError
E6: reserved — the backend died mid-session.
Source code in src/marianne/memory/errors.py
SchemaViolation
¶
Bases: MemoryBackendError
E7: an argument or configuration value fails the contract.
Source code in src/marianne/memory/errors.py
AuthorityRevoked
¶
Bases: MemoryBackendError
E8: the session's authority epoch is stale (grant revoked).
Source code in src/marianne/memory/errors.py
LockTimeout
¶
Bases: MemoryBackendError
E9: lock acquisition did not succeed within the call's budget.
Source code in src/marianne/memory/errors.py
DeadlineExceeded
¶
Bases: MemoryBackendError
E10: the call deadline passed before mutation began.
Source code in src/marianne/memory/errors.py
NotFound
¶
Bases: MemoryBackendError
E11: the fact, unit or attachment does not exist in the bound store.