pub enum MarsError {
Show 15 variants
Config(ConfigError),
Lock(LockError),
Source {
source_name: String,
message: String,
},
UnmanagedCollision {
source_name: String,
path: PathBuf,
},
Resolution(ResolutionError),
Conflict {
path: String,
},
Collision {
item: String,
source_a: String,
source_b: String,
},
Validation(ValidationError),
InvalidRequest {
message: String,
},
FrozenViolation {
message: String,
},
LockedCommitUnreachable {
commit: String,
url: String,
},
Link {
target: String,
message: String,
},
Io(Error),
Http {
url: String,
status: u16,
message: String,
},
GitCli {
command: String,
message: String,
},
}Expand description
Top-level error type aggregating all module errors
Variants§
Config(ConfigError)
Lock(LockError)
Source
UnmanagedCollision
Sync refused to overwrite a file/directory not tracked in mars.lock.
Resolution(ResolutionError)
Conflict
Collision
Validation(ValidationError)
InvalidRequest
FrozenViolation
LockedCommitUnreachable
Link
Link operation error — conflict, missing target, bad symlink.
Io(Error)
Http
GitCli
Implementations§
Trait Implementations§
Source§impl Error for MarsError
impl Error for MarsError
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<ConfigError> for MarsError
impl From<ConfigError> for MarsError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ResolutionError> for MarsError
impl From<ResolutionError> for MarsError
Source§fn from(source: ResolutionError) -> Self
fn from(source: ResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for MarsError
impl From<ValidationError> for MarsError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarsError
impl !RefUnwindSafe for MarsError
impl Send for MarsError
impl Sync for MarsError
impl Unpin for MarsError
impl UnsafeUnpin for MarsError
impl !UnwindSafe for MarsError
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