Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle local & remote exceptions consistently.
Related to LP 1021373. When the floating_ips quota threshold is exceeded, this occurs remotely in the networking service and hence is reported back to the API service over RPC, via a RemoteError wrapping the original QuotaError exception. Previously the handling of such RemoteErrors in the native API was inconsistent with exceptions raised locally within the API service. Now in both cases, we expose the exception explantion, status etc. in the response, if the exception type is declared as safe. This fix is not required on master, as the Folsom RPC failure deserialization logic renders it unnecessary. Change-Id: Icf7dcafd1f942f5d81d12587775d6ade4a176932
- Loading branch information
Eoghan Glynn
committed
Jul 18, 2012
1 parent
6e873bc
commit 4b89b4f
Showing
2 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters