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