make sure to output exception name in log
This commit is contained in:
parent
ad185ebc3d
commit
d4e31257fa
|
@ -1,52 +1,58 @@
|
||||||
class AliasInTrashError(Exception):
|
class SLException(Exception):
|
||||||
|
def __str__(self):
|
||||||
|
super_str = super().__str__()
|
||||||
|
return f"{type(self).__name__} {super_str}"
|
||||||
|
|
||||||
|
|
||||||
|
class AliasInTrashError(SLException):
|
||||||
"""raised when alias is deleted before """
|
"""raised when alias is deleted before """
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class DirectoryInTrashError(Exception):
|
class DirectoryInTrashError(SLException):
|
||||||
"""raised when a directory is deleted before """
|
"""raised when a directory is deleted before """
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class SubdomainInTrashError(Exception):
|
class SubdomainInTrashError(SLException):
|
||||||
"""raised when a subdomain is deleted before """
|
"""raised when a subdomain is deleted before """
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CannotCreateContactForReverseAlias(Exception):
|
class CannotCreateContactForReverseAlias(SLException):
|
||||||
"""raised when a contact is created that has website_email=reverse_alias of another contact"""
|
"""raised when a contact is created that has website_email=reverse_alias of another contact"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class NonReverseAliasInReplyPhase(Exception):
|
class NonReverseAliasInReplyPhase(SLException):
|
||||||
"""raised when a non reverse-alias is used during a reply phase"""
|
"""raised when a non reverse-alias is used during a reply phase"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class VERPTransactional(Exception):
|
class VERPTransactional(SLException):
|
||||||
"""raised an email sent to a transactional VERP can't be handled"""
|
"""raised an email sent to a transactional VERP can't be handled"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class VERPForward(Exception):
|
class VERPForward(SLException):
|
||||||
"""raised an email sent to a forward VERP can't be handled"""
|
"""raised an email sent to a forward VERP can't be handled"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class VERPReply(Exception):
|
class VERPReply(SLException):
|
||||||
"""raised an email sent to a reply VERP can't be handled"""
|
"""raised an email sent to a reply VERP can't be handled"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MailSentFromReverseAlias(Exception):
|
class MailSentFromReverseAlias(SLException):
|
||||||
"""raised when receiving an email sent from a reverse alias"""
|
"""raised when receiving an email sent from a reverse alias"""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue