Skip to content

Commit e2cddcf

Browse files
authored
Add new error classes for persistence handling
1 parent 98a5c00 commit e2cddcf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/cyphersyntax/errors.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,15 @@ class ReplayDetectedError(CypherSyntaxError):
1616

1717
class EnvelopeError(CypherSyntaxError):
1818
"""Raised when an envelope cannot be parsed or validated."""
19+
20+
21+
class PersistenceError(CypherSyntaxError):
22+
"""Base error for durable local persistence failures."""
23+
24+
25+
class StoreError(PersistenceError):
26+
"""Raised when an encrypted store cannot be saved or loaded safely."""
27+
28+
29+
class IdentityError(PersistenceError):
30+
"""Raised when persisted identity material is invalid or inaccessible."""

0 commit comments

Comments
 (0)