コード例 #1
0
	def __init__(self, resourceType, method, allowedMethod):
		UtakaException.__init__(self,
			{'Code' : 'MethodNotAllowed',
			 'Message' : 'The specified method is not allowed against this resource',
			 'ResourceType' : str(resourceType).upper(),
			 'Method' : str(method).upper(),
			 'AllowedMethod' : str(allowedMethod).upper()}, 405)
コード例 #2
0
	def __init__(self, args):
		UtakaException.__init__(self, args, 307)
コード例 #3
0
	def __init__(self, condition):
		UtakaException.__init__(self,
			{'Message' : 'At least one of the pre-conditions you specified did not hold',
			 'Condition' : str(condition),
			 'Code' : 'PreconditionFailed'}, 412)
コード例 #4
0
ファイル: InternalErrorException.py プロジェクト: HISG/utaka
	def __init__(self, devArgs):
		self.devArgs = devArgs
		UtakaException.__init__(self,
			{'Message' : 'We encountered an internal error. Please try again.',
			 'Code' : 'InternalError'}, 500)
コード例 #5
0
ファイル: NotModifiedException.py プロジェクト: HISG/utaka
	def __init__(self):
		UtakaException.__init__(self, {}, 304)