Enum digitalocean::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Reqwest(Error), SerdeJson(Error), UrlParse(ParseError), Unauthorized, UnprocessableEntity(Value), UnexpectedStatus(StatusCode), NotFound, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Reqwest(Error)
SerdeJson(Error)
UrlParse(ParseError)
The reqest's API key is invalid or not authorized to view this resource.
UnprocessableEntity(Value)
The item exists (possibly on another account), the limit on this item has been reached, or this request is otherwise unprocessable.
UnexpectedStatus(StatusCode)
An unexpected status code was returned from the API. Please raise a ticket.
NotFound
The item does not exist or otherwise cannot be found.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.