def __init__(self): Fault.__init__(self, faultcode="Documented", faultstring="A documented fault", faultactor='http://faultactor.example.com', detail=etree.Element('something') )
def __init__(self, username): # TODO: self.transport.http.resp_code = HTTP_401 Fault.__init__( self, faultcode='Client.LoginUnsupported', faultstring='Login Unsupported for non free user %r' % username)
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, obj, custom_msg='The value %r could not be validated.'): s = repr(obj) if len(s) > MAX_STRING_FIELD_LENGTH: s = s[:MAX_STRING_FIELD_LENGTH] + "(...)" Fault.__init__(self, 'Client.ValidationError', custom_msg % s)
def __init__(self, obj, custom_msg='The value %r could not be validated.'): s = repr(obj) if len(s) > MAX_STRING_FIELD_LENGTH: s = s[:MAX_STRING_FIELD_LENGTH] + "(...)" Fault.__init__(self, 'Client.ValidationError', custom_msg % s)
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, 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', )
def __init__(self, reason, username, device_id): # TODO: self.transport.http.resp_code = HTTP_401 if reason == "badLogin": Fault.__init__( self, faultcode='Client.LoginInvalid', faultstring="Username or Password Fail for %r'" % username) elif reason == "freeUser": details = {'SonosError': "666", } Fault.__init__( self, faultcode='Client.LoginUnsupported', faultstring='%r is not a premium account.' % username, detail=details) elif reason == "unsupportedTerritory": Fault.__init__( self, faultcode="Client.UnsupportedTerritory", faultstring='%r is not in a supported territory.' % username)
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.RequestTooLong', faultstring)
def __init__(self, err): Fault.__init__( self, faultcode="ElbeProjectError", faultstring=str(err))
def __init__(self): Fault.__init__(self, faultcode="ElbeInvalidState", faultstring="Project is Busy ! Operation Invalid")
def __init__(self): Fault.__init__( self, faultcode="ElbeNotAuthorized", faultstring="Not Authorized ! Cant let you perform this command.")
def __init__(self): Fault.__init__( self, faultcode="ElbeNotLoggedIn", faultstring="Not authenticated ! " "Cant let you perform this command.")
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.ArgumentError', faultstring)
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.RequestTooLong', faultstring)
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.ArgumentError', faultstring)
def __init__(self, value): Fault.__init__(self, faultcode='Client.KeyError', faultstring='Value %r not found' % value )
def __init__(self): Fault.__init__(self, faultcode="Documented", faultstring="A documented fault", faultactor='http://faultactor.example.com', )
def __init__(self, message): Fault.__init__(self, faultcode='Client.SpiceError', faultstring='SPICE Error: %r' % message)
def __init__(self): Fault.__init__(self, faultcode="ElbeInvalidState", faultstring="Project is Busy ! Operation Invalid")
def __init__(self, exc): Fault.__init__( self, faultcode="ElbeValidationError", faultstring=exc.__repr__())
def __init__(self): Fault.__init__( self, faultcode="ElbeNotAuthorized", faultstring="Not Authorized ! Cant let you perform this command.")
def __init__(self, faultstring): Fault.__init__(self, 'Client.SchemaValidationError', faultstring)
def __init__(self): Fault.__init__(self, faultcode='Client.UnauthenticatedError', faultstring='This resource can only be accessed after authentication.' )
def __init__(self, faultstring="Requested resource not found"): Fault.__init__(self, 'Client.ResourceNotFound', faultstring)
def __init__(self, dberr): Fault.__init__(self, faultcode="ElbeDBError", faultstring=str(dberr))
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.RequestNotAllowed', faultstring)
def __init__(self): Fault.__init__(self, faultcode="ElbeAuthenticationFailed", faultstring="Authentication Failed")
def __init__(self, value): Fault.__init__(self, faultcode='Client.KeyError', faultstring='Value %r not found' % value )
def __init__(self): Fault.__init__( self, faultcode="ElbeAuthenticationFailed", faultstring="Authentication Failed")
def __init__(self, err): Fault.__init__(self, faultcode="ElbeProjectError", faultstring=str(err))
def __init__(self, fault_object, fault_string="You do not have permission to access this resource"): Fault.__init__(self, 'Client.InvalidCredentialsError', fault_string)
def __init__(self): Fault.__init__(self, faultcode="ElbeNotLoggedIn", faultstring="Not authenticated ! " "Cant let you perform this command.")
def __init__(self, error): Fault.__init__(self, 'Server', "InternalError: An unknown error has occured.")
def __init__(self, exc): Fault.__init__(self, faultcode="ElbeValidationError", faultstring=exc.__repr__())
def __init__(self, faultstring): Fault.__init__(self, 'Client.ValidationError', 'The value %r could not be validated.' % faultstring)
def __init__(self, fault_object, fault_string="Requested resource %r not found"): Fault.__init__(self, 'Client.ResourceNotFound', fault_string % fault_object)
def __init__(self, dberr): Fault.__init__(self, faultcode="ElbeDBError", faultstring=str(dberr))
def __init__(self, faultstring="", data=""): Fault.__init__(self, 'Client.InvalidInput', repr((faultstring, data)))
def __init__(self): Fault.__init__(self, faultcode='Client.UnauthenticatedError', faultstring='This resource can only be accessed after authentication.' )
def __init__(self, faultstring): Fault.__init__(self, 'Client.SchemaValidationError', faultstring)
def __init__(self, data=None): Fault.__init__(self, "Client.MessagePackDecodeError", data)
def __init__(self, faultstring="Requested resource not found"): Fault.__init__(self, 'Client.ResourceNotFound', faultstring)
def __init__(self, fault_object, fault_string="Requested resource %r not found"): Fault.__init__(self, 'Client.ResourceNotFound', fault_string % fault_object)
def __init__(self, faultstring=""): Fault.__init__(self, 'Client.RequestNotAllowed', faultstring)
def __init__( self, fault_object, fault_string="You do not have permission to access this resource"): Fault.__init__(self, 'Client.InvalidCredentialsError', fault_string)
def __init__(self, faultstring="", data=""): Fault.__init__(self, 'Client.InvalidInput', repr((faultstring, data)))
def __init__(self, error): Fault.__init__(self, 'Server', "InternalError: An unknown error has occured.")
def __init__(self, data=None): Fault.__init__(self, "Client.MessagePackDecodeError", data)
def __init__(self, sessionId): # TODO: self.transport.http.resp_code = HTTP_401 Fault.__init__(self, faultcode='Client.SessionIdInvalid', faultstring='No Valid Token for %r' % sessionId)