mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
* fixed an issue with the FETCH responses parser * Aliases are now displayed into *identities* * French translation update see #204
24 lines
548 B
Python
24 lines
548 B
Python
# coding: utf-8
|
|
"""
|
|
:mod:`exceptions` --- Custom Modoboa exceptions
|
|
-----------------------------------------------
|
|
|
|
"""
|
|
from django.utils.translation import ugettext as _
|
|
|
|
class ModoboaException(Exception):
|
|
pass
|
|
|
|
class PermDeniedException(ModoboaException):
|
|
def __init__(self, msg=None):
|
|
self.msg = msg
|
|
|
|
def __str__(self):
|
|
if self.msg:
|
|
return _("Permission denied: %s" % self.msg)
|
|
return _("Permission denied")
|
|
|
|
class NeedsMailboxException(ModoboaException):
|
|
pass
|
|
|