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.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Display for OroClientError
impl Display for OroClientError
Source§impl Error for OroClientError
impl Error for OroClientError
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
Source§impl From<DecodeError> for OroClientError
impl From<DecodeError> for OroClientError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<Error> for OroClientError
impl From<Error> for OroClientError
Source§impl From<Error> for OroClientError
impl From<Error> for OroClientError
Source§impl From<ParseError> for OroClientError
impl From<ParseError> for OroClientError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for OroClientError
impl !RefUnwindSafe for OroClientError
impl Send for OroClientError
impl Sync for OroClientError
impl Unpin for OroClientError
impl !UnwindSafe for OroClientError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more