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

exception ClientError(*args, **kwargs)[source]

When instantiating the Client an Error occurred.

Initialise the APIError with response, request, msg, traceback and detail.

Parameters:
  • response

  • kwargs

exception IllegalArgumentError[source]

Illegal arguments where provided.

exception InspectorComponentError[source]

Error in the InspectorComponent.

exception PDFDownloadTimeoutError(*args, **kwargs)[source]

Error downloading the PDF because of a timeouterror.

Initialise the APIError with response, request, msg, traceback and detail.

Parameters:
  • response

  • kwargs