Feature #5002

AstakosClientError class to merge ClientError and AstakosClientException

Added by Stavros Sachtouris over 10 years ago. Updated over 10 years ago.

Status:Resolved Start date:01/28/2014
Priority:High Due date:01/28/2014
Assignee:Stavros Sachtouris % Done:


Category:kamaki Spent time: 4.00 hours
Target version:v0.13 Estimated time:4.00 hours


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

Revision 8b4ba753
Added by Stavros Sachtouris over 10 years ago

Merge astakos error classes --> AstakosClientError

Refs: #5002

Also, decorate kamaki.clients.astakos.AstakosClient to raise this new class
when an error occurs

Revision 493f5877
Added by Stavros Sachtouris over 10 years ago

Apply uniformity in kamaki.clients.astakos errors

Refs: #5002

All errors are now AstakosClientError errors

Also available in: Atom PDF