Package mrv :: Module exc
[hide private]
[frames] | no frames]

Source Code for Module mrv.exc

 1  # -*- coding: utf-8 -*- 
 2  """ Contains all exceptions used by the mrv package in general """ 
 3  __docformat__ = "restructuredtext" 
 4   
5 -class MRVError( Exception ):
6 """ Base Class for all exceptions that the mrv framework throws"""
7 - def __init__(self, *args, **kwargs):
8 self._message = "" 9 if args and isinstance(args[0], basestring): 10 self._message = args[0] 11 args = args[1:] 12 # END args and message handling 13 Exception.__init__(self,*args, **kwargs)
14
15 - def _get_message(self):
16 return self._message
17 - def _set_message(self, message):
18 self._message = message 19 message = property(_get_message, _set_message) 20