Exemplo n.º 1
0
 def __init__(self):
     RESTError.__init__(self)
     self.message = "Empty data has passed"
Exemplo n.º 2
0
 def __init__(self, current_state, new_state):
     RESTError.__init__(self)
     self.message = "InvalidStatus Transition: %s to %s" % (current_state, new_state)
Exemplo n.º 3
0
 def __init__(self):
     RESTError.__init__(self)
     self.message = "Empty data has passed"
Exemplo n.º 4
0
 def __init__(self, message):
     RESTError.__init__(self)
     self.message = "Invalid spec parameter value: %s" % message
Exemplo n.º 5
0
 def __init__(self, current_state, new_state):
     RESTError.__init__(self)
     self.message = "InvalidStatus Transition: %s to %s" % (current_state,
                                                            new_state)
Exemplo n.º 6
0
 def __init__(self, message):
     RESTError.__init__(self)
     self.message = "Invalid spec parameter value: %s" % message
Exemplo n.º 7
0
 def __init__(self, requestName, currentState, newState):
     RESTError.__init__(self)
     self.message = "Invalid status transition for request: %s, from '%s' to '%s'" % (
         requestName, currentState, newState)
Exemplo n.º 8
0
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()