pub enum GomodError {
ManifestNotFound(PathBuf),
Interp {
phase: &'static str,
detail: String,
},
GoList(String),
GoListParse(String),
Io {
path: PathBuf,
source: Error,
},
Other(String),
}Variants§
ManifestNotFound(PathBuf)
Interp
A triplet-interpreter phase failed. phase names the exact
step (go-list, parse-go-list, read-source, resolve-imports,
…) so consumers see the gap mechanically — never a silent wrong
answer (TYPED-SPEC + INTERPRETER TRIPLET discipline).
GoList(String)
The go list subprocess itself failed (non-zero exit / spawn
error). Distinct from a parse failure so the operator can tell a
missing-go / bad-vendor-tree from malformed JSON.
GoListParse(String)
go list -json output did not parse as a concatenated stream of
package objects.
Io
A source file named by go list could not be read for hashing.
Other(String)
Trait Implementations§
Source§impl Debug for GomodError
impl Debug for GomodError
Source§impl Display for GomodError
impl Display for GomodError
Source§impl Error for GomodError
impl Error for GomodError
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 GomodError
impl !UnwindSafe for GomodError
impl Freeze for GomodError
impl Send for GomodError
impl Sync for GomodError
impl Unpin for GomodError
impl UnsafeUnpin for GomodError
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