VirtualMailManager/Exceptions.py
changeset 0 bb0aa2102206
child 2 9b39f828aa8a
equal deleted inserted replaced
-1:000000000000 0:bb0aa2102206
       
     1 #!/usr/bin/env python
       
     2 # -*- coding: UTF-8 -*-
       
     3 # opyright 2007-2008 VEB IT
       
     4 # See COPYING for distribution information.
       
     5 # $Id$
       
     6 
       
     7 """Exception classes for Virtual Mail Manager"""
       
     8 
       
     9 __author__ = 'Pascal Volk <p.volk@veb-it.de>'
       
    10 __version__ = 'rev '+'$Rev$'.split()[1]
       
    11 __date__ = '$Date$'.split()[1]
       
    12 
       
    13 class VMMException(Exception):
       
    14     """Ausnahmeklasse für die Klasse VirtualMailManager"""
       
    15     def __init__(self, msg):
       
    16         Exception.__init__(self, msg)
       
    17 
       
    18 class VMMConfigException(Exception):
       
    19     """Ausnahmeklasse für Konfigurationssausnamhem"""
       
    20     def __init__(self, msg):
       
    21         Exception.__init__(self, msg)
       
    22 
       
    23 class VMMPermException(Exception):
       
    24     """Ausnahmeklasse für Berechtigungsausnamhem"""
       
    25     pass
       
    26 
       
    27 class VMMNotRootException(Exception):
       
    28     """Ausnahmeklasse für unberechtige Zugriffe"""
       
    29     pass
       
    30 
       
    31 class VMMDomainException(VMMException):
       
    32     """Ausnahmeklasse für Domainausnamhem"""
       
    33     def __init__(self, msg):
       
    34         VMMException.__init__(self, msg)
       
    35 
       
    36 class VMMAccountException(VMMException):
       
    37     """Ausnahmeklasse für Accountausnamhem"""
       
    38     def __init__(self, msg):
       
    39         VMMException.__init__(self, msg)
       
    40 
       
    41 class VMMAliasException(VMMException):
       
    42     """Ausnahmeklasse für Aliasausnamhem"""
       
    43     def __init__(self, msg):
       
    44         VMMException.__init__(self, msg)