VirtualMailManager/Exceptions.py
changeset 76 14c0a092d7d2
parent 61 d85482575349
child 102 485d3f7d6981
equal deleted inserted replaced
75:af813ede1e19 76:14c0a092d7d2
     1 #!/usr/bin/env python
       
     2 # -*- coding: UTF-8 -*-
     1 # -*- coding: UTF-8 -*-
     3 # Copyright 2007-2008 VEB IT
     2 # Copyright 2007-2008 VEB IT
     4 # See COPYING for distribution information.
     3 # See COPYING for distribution information.
     5 # $Id$
     4 # $Id$
     6 
     5 
    63 class VMMAliasException(VMMException):
    62 class VMMAliasException(VMMException):
    64     """Exception class for Alias exceptions"""
    63     """Exception class for Alias exceptions"""
    65     def __init__(self, msg, code):
    64     def __init__(self, msg, code):
    66         VMMException.__init__(self, msg, code)
    65         VMMException.__init__(self, msg, code)
    67 
    66 
       
    67 class VMMEmailAddressException(VMMException):
       
    68     """Exception class for EmailAddress exceptions"""
       
    69     def __init__(self, msg, code):
       
    70         VMMException.__init__(self, msg, code)
       
    71 
    68 class VMMMailLocationException(VMMException):
    72 class VMMMailLocationException(VMMException):
    69     """Exception class for MailLocation exceptions"""
    73     """Exception class for MailLocation exceptions"""
       
    74     def __init__(self, msg, code):
       
    75         VMMException.__init__(self, msg, code)
       
    76 
       
    77 class VMMRelocatedException(VMMException):
       
    78     """Exception class for Relocated exceptions"""
    70     def __init__(self, msg, code):
    79     def __init__(self, msg, code):
    71         VMMException.__init__(self, msg, code)
    80         VMMException.__init__(self, msg, code)
    72 
    81 
    73 class VMMTransportException(VMMException):
    82 class VMMTransportException(VMMException):
    74     """Exception class for Transport exceptions"""
    83     """Exception class for Transport exceptions"""
    75     def __init__(self, msg, code):
    84     def __init__(self, msg, code):
    76         VMMException.__init__(self, msg, code)
    85         VMMException.__init__(self, msg, code)
    77