pub enum Error {
Show 17 variants
Usage {
message: String,
},
NotYetImplemented {
command: String,
},
UnknownAgent {
agent: String,
known: Vec<String>,
unknown_configured: Vec<String>,
},
ArgumentConflict {
agent: String,
option: String,
mechanism: String,
},
AgentNotInstalled {
agent: String,
reason: NotInstalledReason,
unknown_configured: Vec<String>,
},
InvalidProfileName {
name: String,
reason: InvalidReason,
},
NoProfile {
agent: String,
config_file: PathBuf,
in_repository: bool,
},
Repository {
path: PathBuf,
reason: String,
},
AppRoot {
message: String,
},
ConfigInvalid {
path: PathBuf,
key: Option<String>,
detail: String,
},
ConfigWrite {
path: PathBuf,
source: Error,
},
ProfileDir {
path: PathBuf,
source: Error,
},
ProfileReferenced {
agent: String,
profile: String,
references: Vec<String>,
},
ProfileCaseConflict {
requested: String,
existing: String,
},
UnsupportedExecutable {
agent: String,
path: PathBuf,
config_file: PathBuf,
},
Launch {
executable: PathBuf,
source: Error,
},
Io {
context: String,
source: Error,
},
}Expand description
Every error agent-profile reports. exit_code maps each variant to spec §33.
Variants§
Usage
NotYetImplemented
UnknownAgent
ArgumentConflict
AgentNotInstalled
InvalidProfileName
NoProfile
Repository
AppRoot
ConfigInvalid
ConfigWrite
ProfileDir
ProfileReferenced
ProfileCaseConflict
UnsupportedExecutable
Launch
Io
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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