From ff1d853f0326658cd208e22aef7a96216e760ae4 Mon Sep 17 00:00:00 2001 From: mftee Date: Fri, 15 May 2026 11:13:08 +0100 Subject: [PATCH] feat: add exceptions module with base and stub subclasses --- pesachat-core/pesachat_core/exceptions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pesachat-core/pesachat_core/exceptions.py diff --git a/pesachat-core/pesachat_core/exceptions.py b/pesachat-core/pesachat_core/exceptions.py new file mode 100644 index 0000000..fb57542 --- /dev/null +++ b/pesachat-core/pesachat_core/exceptions.py @@ -0,0 +1,10 @@ +class PesaChatError(Exception): + """Base exception for all PesaChat errors.""" + + +class AnchorError(PesaChatError): + """Raised when an anchor operation fails.""" + + +class AuthError(PesaChatError): + """Raised when authentication or authorisation fails.""" \ No newline at end of file