Validation Errors on Delete handled

Horizon does not fall into stacktrace now
but still error message is not shown because
horizon has no functionality to show it.

Change-Id: I112cb59fee818914c82311c34797c27bda53d227
This commit is contained in:
Nikita Konovalov 2013-07-26 16:08:14 +04:00
parent a20f643662
commit e553876d30
1 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,8 @@
import json
import logging
from horizon import exceptions
LOG = logging.getLogger(__name__)
@ -126,5 +128,8 @@ def get_json(response):
return json.loads(response.content)
class APIException(Exception):
class APIException(exceptions.HorizonException):
pass
exceptions.RECOVERABLE += (APIException,)