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 <shardy@redhat.com>
This commit is contained in:
parent
ecc5a408a3
commit
9b14adc222
@ -226,6 +226,17 @@ class HeatSignatureError(HeatAPIException):
|
|||||||
"signature you provided")
|
"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):
|
def map_remote_error(ex):
|
||||||
"""
|
"""
|
||||||
Map rpc_common.RemoteError exceptions returned by the engine
|
Map rpc_common.RemoteError exceptions returned by the engine
|
||||||
|
Loading…
Reference in New Issue
Block a user