def __init__(self, user_name): # TODO: self.transport.http.resp_code = HTTP_401 Fault.__init__(self, faultcode='Client.AuthenticationError', faultstring='Invalid authentication request for %r' % user_name )
def __init__(self): # TODO: self.transport.http.resp_code = HTTP_401 Fault.__init__(self, faultcode='Client.AuthorizationError', faultstring='You are not authorized to access this resource.' )
def __init__(self): Fault.__init__(self, faultcode="Documented", faultstring="A documented fault", faultactor='http://faultactor.example.com', detail=etree.Element('something') )
def __init__(self, err): # TODO: handle that err could be a list of strings, first element # should be faultstring, rest should go in self.extra. faultstring = err if isinstance(err, Exception) and err.args: faultstring = err.args[0] self.extra = err.args[1:] faultstring = str(faultstring) Fault.__init__(self, faultcode=self.faultcode, faultstring=faultstring)
def __init__(self): Fault.__init__(self, faultcode='Client.UnauthenticatedError', faultstring='This resource can only be accessed after authentication.' )
def __init__(self, value): Fault.__init__(self, faultcode='Client.KeyError', faultstring='Value %r not found' % value )
def __init__(self, faultstring): Fault.__init__(self, 'Client.ValidationError', 'The string %r could not be validated.' % faultstring)
def __init__(self, faultstring="Requested resource not found"): Fault.__init__(self, 'Client.ResourceNotFound', faultstring)
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.RequestNotAllowed', faultstring)
def __init__(self, faultstring): Fault.__init__(self, 'Client.RequestTooLong', faultstring)
def __init__(self): Fault.__init__(self, faultcode="Documented", faultstring="A documented fault", faultactor='http://faultactor.example.com', detail=etree.Element('something'))
def __init__(self, faultstring): Fault.__init__(self, 'Client.ArgumentError', faultstring)
def __init__(self, faultstring): Fault.__init__(self, 'Client.ResourceNotFound', faultstring)
def __init__(self, faultstring): Fault.__init__(self, "Client.SchemaValidationError", faultstring)
def __init__(self, faultstring): Fault.__init__(self, 'Client.SchemaValidationError', faultstring)