Exceptions¶
Exceptions raised by the v2 client.
All exceptions inherit from FlowApiError, which carries the
HTTP status code and error message from the response.
- exception flowbio.v2.exceptions.FlowApiError(status_code, message)¶
Bases:
ExceptionBase exception for all Flow API errors.
Raised when the API returns a non-success HTTP response. Carries the status code and error message from the response body.
- exception flowbio.v2.exceptions.AuthenticationError(status_code, message)¶
Bases:
FlowApiErrorRaised when the API returns a 401 Unauthorized response.
- exception flowbio.v2.exceptions.BadRequestError(status_code, message)¶
Bases:
FlowApiErrorRaised when the API returns a 400 Bad Request response.
- exception flowbio.v2.exceptions.AnnotationValidationError(errors)¶
Bases:
BadRequestErrorRaised when the annotation upload in
upload_multiplexed_data()returns hard validation errors, or when annotation upload is told not to ignore warnings.The annotation endpoint returns
{"validation": [...]}with status 400 for errors that cannot be ignored (as opposed to warnings which can, unless they are not configured to be ignored).
- exception flowbio.v2.exceptions.NotFoundError(status_code, message)¶
Bases:
FlowApiErrorRaised when the API returns a 404 Not Found response.