From 9b14adc222c01f8a54c56bfe0b6658bd2968bda9 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 22 Aug 2012 09:54:08 +0100 Subject: [PATCH] heat API : Add HeatAPINotImplementedError exception Add heat-specific HeatAPINotImplementedError, which allows us to return a sensible error to requests for API actions which have not yet been implemented Change-Id: Ibaee8312e7e563d29801bd325d7638bca9efa622 Signed-off-by: Steven Hardy --- heat/api/aws/exception.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/heat/api/aws/exception.py b/heat/api/aws/exception.py index eb63aa7ab2..4450a74f77 100644 --- a/heat/api/aws/exception.py +++ b/heat/api/aws/exception.py @@ -226,6 +226,17 @@ class HeatSignatureError(HeatAPIException): "signature you provided") +# Heat-specific errors +class HeatAPINotImplementedError(HeatAPIException): + ''' + This is the response given when an API action is not yet implemented + ''' + code = 500 + title = "APINotImplemented" + explanation = ("The requested action is not yet implemented") + err_type = "Server" + + def map_remote_error(ex): """ Map rpc_common.RemoteError exceptions returned by the engine