pub enum Error {
Show 18 variants
UnrecognizedProvider(String),
BadUrl(String),
UnknownIntegration(String),
NoToken {
id: String,
token_ref: String,
env_var: String,
host: String,
},
Unauthorized {
what: String,
detail: String,
},
Forbidden {
what: String,
detail: String,
},
Api {
what: String,
status: u16,
detail: String,
},
RateLimited {
host: String,
retry_in_secs: u64,
},
Http(String),
Decode(String),
NotImplemented(String),
Unsupported(String),
Ssh(String),
Local(String),
Trust(TrustProblem),
TrustStore(String),
AssignmentBlocked,
BotToken,
}Variants§
UnrecognizedProvider(String)
BadUrl(String)
UnknownIntegration(String)
NoToken
Deliberately verbose: every way of supplying the token is named, because “no token” with no further detail is the error people file issues about.
Fields
Forbidden
Api
RateLimited
The host said to slow down (or we already know it is out of calls).
Http(String)
Decode(String)
NotImplemented(String)
The kind is configurable but no client exists for it yet.
Unsupported(String)
The client exists but does not offer this operation.
Ssh(String)
Local(String)
The local Markdown issue source: a folder or note problem.
Trust(TrustProblem)
The integration trust check refused: nothing was sent.
TrustStore(String)
trust.toml could not be read or written. Refused rather than
treated as empty: an empty store would re-trust whatever the config
says now.
AssignmentBlocked
The repository blocks assignment: nothing was sent.
BotToken
The token is a GitHub App installation token: it has no user behind
it, so GET /user (who am I) does not apply. Not a failure: the
actor is the App.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()