pub enum ActrCliError {
Show 17 variants
Config {
message: String,
},
InvalidProject {
message: String,
},
Network {
message: String,
},
Dependency {
message: String,
},
ServiceDiscovery {
message: String,
},
FingerprintValidation {
message: String,
},
CodeGeneration {
message: String,
},
Cache {
message: String,
},
UserInterface {
message: String,
},
Command {
message: String,
},
ValidationFailed {
details: String,
},
InstallFailed {
reason: String,
},
ComponentNotRegistered {
component: String,
},
Io(Error),
Serialization(Error),
Http(Error),
Other(Error),
}Expand description
CLI Unified Error Type
Variants§
Config
InvalidProject
Network
Dependency
ServiceDiscovery
FingerprintValidation
CodeGeneration
Cache
UserInterface
Command
ValidationFailed
InstallFailed
ComponentNotRegistered
Io(Error)
Serialization(Error)
Http(Error)
Other(Error)
Implementations§
Source§impl ActrCliError
User-friendly Error Display
impl ActrCliError
User-friendly Error Display
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get user-friendly error message
Sourcepub fn suggested_actions(&self) -> Vec<String>
pub fn suggested_actions(&self) -> Vec<String>
Get possible solutions
Sourcepub fn documentation_links(&self) -> Vec<(&str, &str)>
pub fn documentation_links(&self) -> Vec<(&str, &str)>
Get related documentation links
Trait Implementations§
Source§impl Debug for ActrCliError
impl Debug for ActrCliError
Source§impl Display for ActrCliError
impl Display for ActrCliError
Source§impl Error for ActrCliError
impl Error for ActrCliError
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<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<ValidationReport> for ActrCliError
Convert validation report to error
impl From<ValidationReport> for ActrCliError
Convert validation report to error
Source§fn from(report: ValidationReport) -> Self
fn from(report: ValidationReport) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActrCliError
impl !RefUnwindSafe for ActrCliError
impl Send for ActrCliError
impl Sync for ActrCliError
impl Unpin for ActrCliError
impl !UnwindSafe for ActrCliError
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.