VirtualMailManager/errors.py
branchv0.6.x
changeset 320 011066435e6f
parent 216 0c8c053b451c
child 366 d6573da35b5f
equal deleted inserted replaced
319:f4956b4ceba1 320:011066435e6f
     1 # -*- coding: UTF-8 -*-
     1 # -*- coding: UTF-8 -*-
     2 # Copyright (c) 2007 - 2010, Pascal Volk
     2 # Copyright (c) 2007 - 2010, Pascal Volk
     3 # See COPYING for distribution information.
     3 # See COPYING for distribution information.
     4 
       
     5 """
     4 """
     6     VirtualMailManager.errors
     5     VirtualMailManager.errors
       
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~
     7 
     7 
     8     VMM's Exception classes
     8     VMM's Exception classes
     9 """
     9 """
    10 
    10 
    11 
    11 
    17         self.msg = msg
    17         self.msg = msg
    18         self.code = int(code)
    18         self.code = int(code)
    19 
    19 
    20     def __repr__(self):
    20     def __repr__(self):
    21         return '%s(%r, %r)' % (self.__class__.__name__, self.msg, self.code)
    21         return '%s(%r, %r)' % (self.__class__.__name__, self.msg, self.code)
       
    22 
    22 
    23 
    23 class ConfigError(VMMError):
    24 class ConfigError(VMMError):
    24     """Exception class for configuration exceptions"""
    25     """Exception class for configuration exceptions"""
    25     pass
    26     pass
    26 
    27