Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyException(Exception):
- __metaclass__ = ABCMeta
- ## $constructor
- def __init__(self, value):
- ## @var self.__subReason a more detailed reason for the exception
- self.subReason = value
- .
- .
- class OptionSectionException(MyException):
- ## the constructor
- def __init__(self, value):
- MyException.__init__(self, value)
- .
- .
- def getMessage(self):
- return 'Problem during parsing the required section [OPTION]: ' + self.subReason <-----
- --->AttributeError: type object 'OptionSectionException' has no attribute 'subReason'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement