jetraw.error module¶
- jetraw.error.parse_api_error(error)¶
Parse a ApiError and return a human readable error message.
- Return type:
str
- jetraw.error.parse_api_exception(e)¶
Parse a ApiException and return an Exception with a human readable message. If the ApiException can’t be parsed, it will be returned as it is.
- Return type:
Union[Exception,ApiException]
- jetraw.error.parse_bad_request_exception(e)¶
Parse a BadRequestException and return a ValueError with a human readable error message. If the BadRequestException can’t be parsed, it will be returned as it is.
- Return type:
Union[ValueError,BadRequestException]
- jetraw.error.parse_validation_error(error)¶
Parse a ValidationError and return a human readable error message.
- Return type:
str