|
|
@ -37,6 +37,8 @@ pub enum Error { |
|
|
|
Client(StatusCode), |
|
|
|
Client(StatusCode), |
|
|
|
/// Generic server error.
|
|
|
|
/// Generic server error.
|
|
|
|
Server(StatusCode), |
|
|
|
Server(StatusCode), |
|
|
|
|
|
|
|
/// MastodonBuilder error.
|
|
|
|
|
|
|
|
DataMissing, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
impl fmt::Display for Error { |
|
|
|
impl fmt::Display for Error { |
|
|
@ -63,6 +65,7 @@ impl error::Error for Error { |
|
|
|
Error::ClientIdRequired => "ClientIdRequired", |
|
|
|
Error::ClientIdRequired => "ClientIdRequired", |
|
|
|
Error::ClientSecretRequired => "ClientSecretRequired", |
|
|
|
Error::ClientSecretRequired => "ClientSecretRequired", |
|
|
|
Error::AccessTokenRequired => "AccessTokenRequired", |
|
|
|
Error::AccessTokenRequired => "AccessTokenRequired", |
|
|
|
|
|
|
|
Error::DataMissing => "DataMissing", |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|