exceptions¶
- exception APIError(*args, **kwargs)[source]¶
A general KE-chain API Error occurred.
A end-user descriptive message is required.
- Variables:
response – response object
request – request object that precedes the response
msg – error message in the response
traceback – traceback in the response (from the KE-chain server)
detail – details of the error
Initialise the APIError with response, request, msg, traceback and detail.
- Parameters:
response –
kwargs –
- exception ForbiddenError(*args, **kwargs)[source]¶
A login is required.
Initialise the APIError with response, request, msg, traceback and detail.
- Parameters:
response –
kwargs –
- exception MultipleFoundError(*args, **kwargs)[source]¶
Multiple objects are found, while a single object is requested.
Initialise the APIError with response, request, msg, traceback and detail.
- Parameters:
response –
kwargs –
- exception NotFoundError(*args, **kwargs)[source]¶
No object is found.
Initialise the APIError with response, request, msg, traceback and detail.
- Parameters:
response –
kwargs –