Enum dropbox_sdk::Error [−][src]
pub enum Error { HttpClient(Box<dyn Error + Send + Sync + 'static>), Json(Error), UnexpectedResponse(&'static str), BadRequest(String), Authentication(AuthError), RateLimited { reason: RateLimitReason, retry_after_seconds: u32, }, AccessDenied(AccessError), ServerError(String), UnexpectedHttpError { code: u16, status: String, json: String, }, }
Expand description
An error occurred in the process of making an API call. This is different from the case where your call succeeded, but the operation returned an error.
Variants
Some error from the internals of the HTTP client.
Json(Error)
Something went wrong in the process of transforming your arguments into a JSON string.
UnexpectedResponse(&'static str)
The Dropbox API response was unexpected or malformed in some way.
BadRequest(String)
The Dropbox API indicated that your request was malformed in some way.
Authentication(AuthError)
Errors occurred during authentication.
Your request was rejected due to rate-limiting. You can retry it later.
Fields of RateLimited
reason: RateLimitReason
The server-given reason for the rate-limiting.
retry_after_seconds: u32
You can retry this request after this many seconds.
AccessDenied(AccessError)
The user or team account doesn’t have access to the endpoint or feature.
ServerError(String)
The Dropbox API server had an internal error.
The Dropbox API returned an unexpected HTTP response code.
Fields of UnexpectedHttpError
Trait Implementations
Performs the conversion.
Performs the conversion.