Files
python-barbicanclient/barbicanclient/common/exceptions.py
Paul Kehrer a75555f964 pep8 fixes
2013-05-24 14:22:22 -05:00

13 lines
466 B
Python

class ClientException(Exception):
"""Exception for wrapping up Barbican client errors"""
def __init__(self, href='', http_status=0,
method='', http_response_content=''):
self.method = method
self.href = href
self.http_status = http_status
self.http_response_content = http_response_content
msg = "%s %s returned %d" % (self.method, self.href, self.http_status)
Exception.__init__(self, msg)