From: Steven Hardy Date: Wed, 22 Aug 2012 08:54:08 +0000 (+0100) Subject: heat API : Add HeatAPINotImplementedError exception X-Git-Tag: 2014.1~1521 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9b14adc222c01f8a54c56bfe0b6658bd2968bda9;p=openstack-build%2Fheat-build.git 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 --- diff --git a/heat/api/aws/exception.py b/heat/api/aws/exception.py index eb63aa7a..4450a74f 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