Feature #5002

AstakosClientError class to merge ClientError and AstakosClientException

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

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

Revision 8b4ba753
Added by Stavros Sachtouris about 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 about 10 years ago

Apply uniformity in kamaki.clients.astakos errors

Refs: #5002

All errors are now AstakosClientError errors

Also available in: Atom PDF