2022-01-07 16:45:12 +01:00
|
|
|
class SLException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
super_str = super().__str__()
|
|
|
|
return f"{type(self).__name__} {super_str}"
|
|
|
|
|
|
|
|
|
|
|
|
class AliasInTrashError(SLException):
|
2022-02-06 15:25:53 +01:00
|
|
|
"""raised when alias is deleted before"""
|
2020-05-07 22:28:49 +02:00
|
|
|
|
2020-05-07 22:23:36 +02:00
|
|
|
pass
|
2021-11-17 17:02:31 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class DirectoryInTrashError(SLException):
|
2022-02-06 15:25:53 +01:00
|
|
|
"""raised when a directory is deleted before"""
|
2021-11-17 17:02:31 +01:00
|
|
|
|
|
|
|
pass
|
2021-11-17 17:21:13 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class SubdomainInTrashError(SLException):
|
2022-02-06 15:25:53 +01:00
|
|
|
"""raised when a subdomain is deleted before"""
|
2021-11-17 17:21:13 +01:00
|
|
|
|
|
|
|
pass
|
2022-01-07 10:04:12 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class CannotCreateContactForReverseAlias(SLException):
|
2022-01-07 10:04:12 +01:00
|
|
|
"""raised when a contact is created that has website_email=reverse_alias of another contact"""
|
|
|
|
|
|
|
|
pass
|
2022-01-07 10:34:08 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class NonReverseAliasInReplyPhase(SLException):
|
2022-01-07 10:34:08 +01:00
|
|
|
"""raised when a non reverse-alias is used during a reply phase"""
|
|
|
|
|
|
|
|
pass
|
2022-01-07 14:57:47 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class VERPTransactional(SLException):
|
2022-01-07 14:57:47 +01:00
|
|
|
"""raised an email sent to a transactional VERP can't be handled"""
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class VERPForward(SLException):
|
2022-01-07 14:57:47 +01:00
|
|
|
"""raised an email sent to a forward VERP can't be handled"""
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class VERPReply(SLException):
|
2022-01-07 14:57:47 +01:00
|
|
|
"""raised an email sent to a reply VERP can't be handled"""
|
|
|
|
|
|
|
|
pass
|
2022-01-07 16:14:21 +01:00
|
|
|
|
|
|
|
|
2022-01-07 16:45:12 +01:00
|
|
|
class MailSentFromReverseAlias(SLException):
|
2022-01-07 16:14:21 +01:00
|
|
|
"""raised when receiving an email sent from a reverse alias"""
|
|
|
|
|
|
|
|
pass
|