Feature #5002
AstakosClientError class to merge ClientError and AstakosClientException
Status: | Resolved | Start date: | 01/28/2014 | |
---|---|---|---|---|
Priority: | High | Due date: | 01/28/2014 | |
Assignee: | Stavros Sachtouris | % Done: | 100% |
|
Category: | kamaki | Spent time: | 4.00 hours | |
Target version: | v0.13 | Estimated time: | 4.00 hours |
Description
Define this class:
class AstakosClientError(kamaki.clients.ClientError and astakosclient.AstakosClientException):
Also, decorate the kamaki.clients.astakos.AstakosClient methods to raise AstakosClientError instead of AstakosClientException,
but preserve the information of the error.
This will allow a uniform handling of errors by external clients: they will all catch them as ClientErrors
Associated revisions
Merge astakos error classes --> AstakosClientError
Refs: #5002
Also, decorate kamaki.clients.astakos.AstakosClient to raise this new class
when an error occurs
Apply uniformity in kamaki.clients.astakos errors
Refs: #5002
All errors are now AstakosClientError errors