'Initialize exception.'

def __init__(self, message, cause=None):

    if (hasattr(cause, 'args') and cause.args):
        Error.__init__(self, message, *cause.args)
    else:
        Error.__init__(self, message)
    self.message = message
    self.cause = cause
