mrv.exc
Covered: 15 lines
Missed: 0 lines
Skipped 7 lines
Percent: 100 %
 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):
 8
		self._message = ""
 9
		if args and isinstance(args[0], basestring):
10
			self._message = args[0]
11
			args = args[1:]
13
		Exception.__init__(self,*args, **kwargs)
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)