Enum spacetraders::errors::SpaceTradersClientError [−][src]
pub enum SpaceTradersClientError { Http(Error), ApiError(ErrorMessage), TooManyRetries, JsonParse(Error), ServiceUnavailable, Unauthorized, }
Expand description
Any error from the space traders client is represented here
Variants
Http(Error)
If the underlying reqwest driver has an error
ApiError(ErrorMessage)
If the SpaceTraders API returns an error
If a request comes back with a 429 or 500 the request will be retried. This error occurs if there are too many retries
JsonParse(Error)
If a response from the API is unable to be serialized into a known type
If the SpaceTraders API is in maintenance mode
If the token is invalid for the request being made
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SpaceTradersClientError
impl Send for SpaceTradersClientError
impl Sync for SpaceTradersClientError
impl Unpin for SpaceTradersClientError
impl !UnwindSafe for SpaceTradersClientError