7.1.1.1.2.2. claimstore.core.exception module

Definition of specific exceptions.

exception claimstore.core.exception.InvalidJSONData(message, status_code=None, extra=None)

Bases: claimstore.core.exception.RestApiException

Invalid JSON Data.

This exception is raised when there is some JSON data that does not follow its associated JSON schema.

exception claimstore.core.exception.InvalidRequest(message, status_code=None, extra=None)

Bases: claimstore.core.exception.RestApiException

REST request could not be fulfilled.

exception claimstore.core.exception.RestApiException(message, status_code=None, extra=None)

Bases: Exception

Generic Rest API exception.

status_code = 400

Return exception as a dictionary.