pub enum AurumError {
User(UserError),
Environment(EnvironmentError),
Provider(ProviderError),
Internal(String),
}Expand description
Top-level product error type used across the core library and CLI (JOE-2221).
Variants§
Implementations§
Source§impl AurumError
impl AurumError
Sourcepub fn category(&self) -> &'static str
pub fn category(&self) -> &'static str
Coarse group label for exit codes and ErrorDto category.
Sourcepub fn error_category(&self) -> ErrorCategory
pub fn error_category(&self) -> ErrorCategory
Stable semantic category (JOE-1611).
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
Suggested process exit code.
1 internal · 2 user/input · 3 environment · 4 provider · 5 cancelled · 6 deadline · 7 overload
pub fn internal(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for AurumError
impl Debug for AurumError
Source§impl Display for AurumError
impl Display for AurumError
Source§impl Error for AurumError
impl Error for AurumError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EnvironmentError> for AurumError
impl From<EnvironmentError> for AurumError
Source§fn from(source: EnvironmentError) -> Self
fn from(source: EnvironmentError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AurumError
impl From<Error> for AurumError
Source§impl From<ProviderError> for AurumError
impl From<ProviderError> for AurumError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AurumError
impl !UnwindSafe for AurumError
impl Freeze for AurumError
impl Send for AurumError
impl Sync for AurumError
impl Unpin for AurumError
impl UnsafeUnpin for AurumError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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