VirtualMailManager/Exceptions.py
author Pascal Volk <neverseen@users.sourceforge.net>
Wed, 11 Jun 2008 05:07:07 +0000
changeset 38 c44ea4526546
parent 32 ceb700bc4a80
child 47 191d5a5adc4a
permissions -rw-r--r--
* 'VirtualMailManager/Alias.py' - replaced all »« with '' * 'VirtualMailManager/Account.py' - replaced all »« with '' - added Account.setPassword() * 'VirtualMailManager/VirtualMailManager.py' - replaced all »« with '' - added VirtualMailManager._readpass() - check if domain/account exists before prompting for password (VirtualMailManager.user_add(), VirtualMailManager.user_password()) * 'vmm' - removed _readpass() * 'UPGRADE' * 'upgrade.sh' - added to repository again * 'po/vmm.pot' * 'po/de.po' - updated

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2007-2008 VEB IT
# See COPYING for distribution information.
# $Id$

"""Exception classes for Virtual Mail Manager"""

from constants.VERSION import VERSION

__author__ = 'Pascal Volk <p.volk@veb-it.de>'
__version__ = VERSION
__revision__ = 'rev '+'$Rev$'.split()[1]
__date__ = '$Date$'.split()[1]

class VMMException(Exception):
    """Exception class for VirtualMailManager exceptions"""
    def __init__(self, msg):
        Exception.__init__(self, msg)

class VMMConfigException(Exception):
    """Exception class for Configurtion exceptions"""
    def __init__(self, msg):
        Exception.__init__(self, msg)

class VMMPermException(Exception):
    """Exception class for permissions exceptions"""
    pass

class VMMNotRootException(Exception):
    """Exception class for non-root exceptions"""
    def __init__(self, msg):
        Exception.__init__(self, msg)

class VMMDomainException(VMMException):
    """Exception class for Domain exceptions"""
    def __init__(self, msg):
        VMMException.__init__(self, msg)

class VMMAccountException(VMMException):
    """Exception class for Account exceptions"""
    def __init__(self, msg):
        VMMException.__init__(self, msg)

class VMMAliasException(VMMException):
    """Exception class for Alias exceptions"""
    def __init__(self, msg):
        VMMException.__init__(self, msg)

class VMMMailLocationException(VMMException):
    """Exception class for MailLocation exceptions"""
    def __init__(self, msg):
        VMMException.__init__(self, msg)

class VMMTransportException(VMMException):
    """Exception class for Transport exceptions"""
    def __init__(self, msg):
        VMMException.__init__(self, msg)