Exemplo n.º 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)
Exemplo n.º 2
0
	def __init__(self, args):
		UtakaException.__init__(self, args, 307)
Exemplo n.º 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)
Exemplo n.º 4
0
	def __init__(self, devArgs):
		self.devArgs = devArgs
		UtakaException.__init__(self,
			{'Message' : 'We encountered an internal error. Please try again.',
			 'Code' : 'InternalError'}, 500)
Exemplo n.º 5
0
	def __init__(self):
		UtakaException.__init__(self, {}, 304)