def __init__(self): RESTError.__init__(self) self.message = "Empty data has passed"
def __init__(self, current_state, new_state): RESTError.__init__(self) self.message = "InvalidStatus Transition: %s to %s" % (current_state, new_state)
def __init__(self, message): RESTError.__init__(self) self.message = "Invalid spec parameter value: %s" % message
def __init__(self, requestName, currentState, newState): RESTError.__init__(self) self.message = "Invalid status transition for request: %s, from '%s' to '%s'" % ( requestName, currentState, newState)
from WMCore.REST.Error import MethodWithoutQueryString from WMCore.REST.Error import APIMethodMismatch from WMCore.REST.Error import APINotSpecified from WMCore.REST.Error import NoSuchInstance from WMCore.REST.Error import DatabaseError from WMCore.REST.Error import DatabaseUnavailable from WMCore.REST.Error import DatabaseConnectionError from WMCore.REST.Error import DatabaseExecutionError from WMCore.REST.Error import MissingParameter from WMCore.REST.Error import InvalidParameter from WMCore.REST.Error import MissingObject from WMCore.REST.Error import TooManyObjects from WMCore.REST.Error import ObjectAlreadyExists from WMCore.REST.Error import InvalidObject from WMCore.REST.Error import ExecutionError RESTError() NotAcceptable() UnsupportedMethod() MethodWithoutQueryString() APIMethodMismatch() APINotSpecified() NoSuchInstance() DatabaseError() DatabaseUnavailable() DatabaseConnectionError() DatabaseExecutionError() MissingParameter() InvalidParameter() MissingObject() TooManyObjects() ObjectAlreadyExists()