summaryrefslogtreecommitdiff
path: root/ceilometerclient/exc.py
Commit message (Collapse)AuthorAgeFilesLines
* Retire ceilometerclientJulien Danjou2017-11-221-144/+0
| | | | | Depends-On: Ic2947fd066a2df685d52539d0756cd981cc16113 Change-Id: I65738a55db82053643f7580eee20b63df52b957f
* Set code and details on HTTPExceptionMehdi Abaakouk2016-10-071-10/+21
| | | | | | | | Even the HTTPException is unknown for ceilometer we should set the code and print it with the details. Closes-bug: #1626404 Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0
* Fix from_response method to process response from requestsAndrey Kurilin2016-09-071-2/+12
| | | | | | | | | | | | | | | | SessionClient uses requests library. It's response class doesn't have "status" property[1], so in case of any errors(with status code > 400), from_response method is called and raises AttributeError. Also, HTTPClient implementation uses requests lib by default[2](if 'http' argument was not transmitted), so from_response method will raise AttributeError too. [1] - http://docs.python-requests.org/en/master/api/#requests.Response.status_code [2] - https://github.com/openstack/python-ceilometerclient/blob/2.6.0/ceilometerclient/openstack/common/apiclient/client.py#L99-L100 Change-Id: Id8fb2f386e8101951716f30a6365c9aa15bd4b24 Closes-Bug: #1620974
* Merge "fixed several pep8 issues"Jenkins2014-05-291-1/+1
|\
| * fixed several pep8 issuesChristian Berendt2014-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | * E122 continuation line missing indentation or outdented * E126 continuation line over-indented for hanging indent * E128 continuation line under-indented for visual indent * E265 block comment should start with '# ' Tested with pep8 version 1.5.6 (2014-04-14). Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
* | Remove out-dated exceptionsZhiQiang Fan2014-05-161-50/+1
|/ | | | | | | | There are some exceptions defined in exc module, which is introduced two years ago, and it is marked as DEPRECATED in the same time. It should be removed for now, since there are no longer used. Change-Id: I039575f37b0e6d1c30e447b74d61b8cd0b6bbd29
* Display message on HTTPExceptionliu-sheng2014-04-171-24/+22
| | | | | | | | Display the faultstring of HTTPException if available, such as HTTPBadRequest(400) error and HTTPNotFound(404) error. Change-Id: I1c361ff5d02ded4af429f94fd4299d2de3798488 Closes-bug: #1297769
* Display message on HTTP 400Thomas Herve2013-12-161-3/+14
| | | | | | | | This patch parses the faultstring given by the server on 400 errors if available. Change-Id: Ieae2f0b39fed2c45f276d6c931bebfebab9f696e Closes-Bug: bug #1260394
* Fix pep H402 and H401 errorsAngus Salkeld2013-05-201-12/+12
| | | | | | This is an effort to get the pep ignores to be closer to nova. Change-Id: I451df579bbead00a8ff2c301c1a84e7c0a896002
* Add basic functionalityAngus Salkeld2012-11-091-0/+163
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>