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