takahe/core/exceptions.py
2023-10-23 10:33:55 -06:00

16 lines
337 B
Python

class ActivityPubError(BaseException):
"""
A problem with an ActivityPub message
"""
class ActivityPubFormatError(ActivityPubError):
"""
A problem with an ActivityPub message's format/keys
"""
class ActorMismatchError(ActivityPubError):
"""
The actor is not authorised to do the action we saw
"""