API Errors

Generic errors, or errors that should not be module-local

exception labstats_api.api_errors.LabStatsAPIError

Bases: Exception

Base exception for LabStats API.

Thrown in this regular form when no more specific error applies.

exception labstats_api.api_errors.NotFoundError

Bases: labstats_api.api_errors.LabStatsAPIError

Thrown by LabStats when the requested item was not found

exception labstats_api.api_errors.RequestInvalidError

Bases: labstats_api.api_errors.LabStatsAPIError

Thrown by LabStats when the request is invalid

exception labstats_api.api_errors.UnauthorizedError

Bases: labstats_api.api_errors.LabStatsAPIError

Thrown by LabStats when the given API key is invalid or has insufficient permissions.

May also be thrown if the IP you are accessing the API from is not whitelisted for the key.