mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* Added support for migrations * Big refactoring of the admin code done: Support for SHA256 algorithm to store passwords (fix #195) done: admin models refactoring (fix #196)
22 lines
480 B
Python
22 lines
480 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):
|
|
self.msg = msg
|
|
|
|
def __str__(self):
|
|
return _("Permission denied: %s" % self.msg)
|
|
|
|
class NeedsMailboxException(ModoboaException):
|
|
pass
|
|
|