Enum oro_client::OroClientError
source · pub enum OroClientError {
Show 13 variants
UrlParseError(ParseError),
PackageNotFound(Url, String),
BadJson {
source: Error,
url: String,
json: NamedSource,
err_loc: (usize, usize),
},
RequestError(Error),
ResponseError(Response),
NoSuchUserError(String),
IncorrectPasswordError,
InvalidTokenError,
OTPRequiredError,
RequestMiddlewareError(Error),
CredentialsConfigError(String),
AuthStringMissingUsername(String),
Base64DecodeError(DecodeError),
}Variants§
UrlParseError(ParseError)
An invalid URL was provided.
PackageNotFound(Url, String)
The package was not found in the registry.
Make sure the package name is spelled correctly and that you’ve configured the right registry to fetch it from.
BadJson
Got some bad JSON we couldn’t parse.
RequestError(Error)
A generic request error happened while making a request. Refer to the error message for more details.
ResponseError(Response)
Recived unexpected response.
NoSuchUserError(String)
No such user.
IncorrectPasswordError
Incorrect or missing password.
InvalidTokenError
Unable to authenticate, your authentication token seems to be invalid.
OTPRequiredError
This operation requires a one-time password from your authenticator.
RequestMiddlewareError(Error)
A generic request middleware error happened while making a request. Refer to the error message for more details.
CredentialsConfigError(String)
An error during reading the configuration
AuthStringMissingUsername(String)
Auth string did not include a username when decoded.
Base64DecodeError(DecodeError)
Failed to decode base64.
Implementations§
source§impl OroClientError
impl OroClientError
pub fn from_json_err(err: Error, url: String, json: String) -> Self
Trait Implementations§
source§impl Debug for OroClientError
impl Debug for OroClientError
source§impl Diagnostic for OroClientError
impl Diagnostic for OroClientError
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic’s Diagnostic::source_codesource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic.source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moresource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Diagnostics.