コード例 #1
0
ファイル: Auxiliary.py プロジェクト: belforte/WMCore
 def __init__(self):
     RESTError.__init__(self)
     self.message = "Empty data has passed"
コード例 #2
0
 def __init__(self, current_state, new_state):
     RESTError.__init__(self)
     self.message = "InvalidStatus Transition: %s to %s" % (current_state, new_state)
コード例 #3
0
ファイル: Auxiliary.py プロジェクト: BioGeek/WMCore
 def __init__(self):
     RESTError.__init__(self)
     self.message = "Empty data has passed"
コード例 #4
0
 def __init__(self, message):
     RESTError.__init__(self)
     self.message = "Invalid spec parameter value: %s" % message
コード例 #5
0
ファイル: RequestError.py プロジェクト: vytjan/WMCore
 def __init__(self, current_state, new_state):
     RESTError.__init__(self)
     self.message = "InvalidStatus Transition: %s to %s" % (current_state,
                                                            new_state)
コード例 #6
0
ファイル: RequestError.py プロジェクト: vytjan/WMCore
 def __init__(self, message):
     RESTError.__init__(self)
     self.message = "Invalid spec parameter value: %s" % message
コード例 #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)
コード例 #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()