summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/exceptions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/exceptions.py b/core/exceptions.py
new file mode 100644
index 0000000..4475538
--- /dev/null
+++ b/core/exceptions.py
@@ -0,0 +1,10 @@
+class ActivityPubError(BaseException):
+ """
+ A problem with an ActivityPub message
+ """
+
+
+class ActorMismatchError(ActivityPubError):
+ """
+ The actor is not authorised to do the action we saw
+ """