pub enum NewgitError {
Show 34 variants
Io {
path: Utf8PathBuf,
source: Error,
},
TomlRead {
path: Utf8PathBuf,
source: Error,
},
TomlWrite {
label: String,
source: Error,
},
MissingMetadata(Utf8PathBuf),
AlreadyExists(Utf8PathBuf),
InvalidName(String),
BranchInstanceExists {
name: String,
path: Utf8PathBuf,
},
UnknownBranchInstance(String),
WorkspaceExists(Utf8PathBuf),
NotAGitRepo(Utf8PathBuf),
SourceCommand {
command: String,
stderr: String,
},
InvalidDefinition {
tracker: String,
reason: String,
},
TrackerPathConflict {
left: String,
right: String,
path: Utf8PathBuf,
},
UnknownTracker(String),
UnknownTemplate(String),
NoSnapshot {
tracker: String,
rev: String,
},
TrackerHasNoPaths(String),
NothingToSeed {
tracker: String,
paths: String,
},
UnknownResource(String),
UnknownAction {
resource: String,
action: String,
},
AlreadyRunning {
resource: String,
pid: u32,
},
DependencyCycle(Vec<String>),
MissingDependency {
resource: String,
dependency: String,
},
NoCheckpoints(String),
UnknownCheckpoint {
instance: String,
id: String,
},
CheckpointCommandFailed {
resource: String,
code: i32,
log: Utf8PathBuf,
},
RenderMatchCount {
resource: String,
path: Utf8PathBuf,
find: String,
expected: usize,
found: usize,
},
RenderNotInvertible {
resource: String,
path: Utf8PathBuf,
value: String,
expected: usize,
found: usize,
},
RenderUnresolved {
resource: String,
path: Utf8PathBuf,
placeholder: String,
},
RenderOverlappingFinds {
resource: String,
path: Utf8PathBuf,
left: String,
right: String,
},
RenderPathConflict {
left: String,
right: String,
path: Utf8PathBuf,
},
RenderPathNotCommitted {
resource: String,
path: Utf8PathBuf,
},
Unsupported(String),
NonUtf8Path(String),
}Variants§
Io
TomlRead
TomlWrite
MissingMetadata(Utf8PathBuf)
AlreadyExists(Utf8PathBuf)
InvalidName(String)
BranchInstanceExists
UnknownBranchInstance(String)
WorkspaceExists(Utf8PathBuf)
NotAGitRepo(Utf8PathBuf)
SourceCommand
InvalidDefinition
TrackerPathConflict
UnknownTracker(String)
UnknownTemplate(String)
NoSnapshot
TrackerHasNoPaths(String)
NothingToSeed
UnknownResource(String)
UnknownAction
AlreadyRunning
DependencyCycle(Vec<String>)
MissingDependency
NoCheckpoints(String)
UnknownCheckpoint
CheckpointCommandFailed
RenderMatchCount
RenderNotInvertible
RenderUnresolved
RenderOverlappingFinds
RenderPathConflict
RenderPathNotCommitted
Unsupported(String)
NonUtf8Path(String)
Implementations§
Source§impl NewgitError
impl NewgitError
pub fn io(path: impl Into<Utf8PathBuf>, source: Error) -> Self
Trait Implementations§
Source§impl Debug for NewgitError
impl Debug for NewgitError
Source§impl Display for NewgitError
impl Display for NewgitError
Source§impl Error for NewgitError
impl Error for NewgitError
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 NewgitError
impl !UnwindSafe for NewgitError
impl Freeze for NewgitError
impl Send for NewgitError
impl Sync for NewgitError
impl Unpin for NewgitError
impl UnsafeUnpin for NewgitError
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