Commit 1fa3f0a2 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

User-defined exceptions should inherit Exception

parent 84e59e91
......@@ -6,9 +6,9 @@ def camelCase(s):
return s[0].lower() + s[1:]
class Fault(BaseException):
class Fault(Exception):
def __init__(self, message='', details='', name=''):
BaseException.__init__(self, message, details, name)
Exception.__init__(self, message, details, name)
self.message = message
self.details = details = name or camelCase(self.__class__.__name__)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment