'When an error occurs.
@param message: The message that is failing to be a valid
OpenID request.
@type message: openid.message.Message
@param text: A message about the encountered error.  Set as C{args[0]}.
@type text: str'

def __init__(self, message, text=None, reference=None, contact=None):

    self.openid_message = message
    self.reference = reference
    self.contact = contact
    assert (type(message) not in [str, unicode])
    Exception.__init__(self, text)
