Enum axoproject::errors::AxoprojectError
source · #[non_exhaustive]pub enum AxoprojectError {
Show 13 variants
Axoasset(AxoassetError),
CargoMetadata(Error),
ParseChangelog(Error),
ParseCargoToml {
source: SourceFile,
span: Option<SourceSpan>,
details: TomlError,
},
NamelessNpmPackage {
manifest: Utf8PathBuf,
},
BuildInfoParse {
manifest_path: Utf8PathBuf,
details: Error,
},
InconsistentRepositoryKey {
file1: Utf8PathBuf,
url1: String,
file2: Utf8PathBuf,
url2: String,
},
AutoIncludeSearch {
dir: Utf8PathBuf,
details: Error,
},
UnknownRepoStyle {
url: String,
},
RepoParseError {
repo: String,
},
UrlParseError(ParseError),
NotGitHubError {
url: String,
},
ChangelogVersionNotFound {
path: Utf8PathBuf,
version: Version,
},
}
Expand description
An Error/Diagnostic returned by Axoproject
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Axoasset(AxoassetError)
Axoasset returned an error (I/O error)
CargoMetadata(Error)
An error occured in guppy/cargo-metadata when trying to find a cargo project
ParseChangelog(Error)
An error occured in parse_changelog
ParseCargoToml
An error parsing a Cargo.toml
NamelessNpmPackage
We found a package.json but it didn’t have “name” set
Fields
manifest: Utf8PathBuf
path to the package.json
BuildInfoParse
We tried to get the bins from a package.json but something went wrong
InconsistentRepositoryKey
Your workspace gave several different values for “repository”
AutoIncludeSearch
An error that occured while trying to find READMEs and whatnot in your project dir
UnknownRepoStyle
An error that occurred while trying to parse a repository string
RepoParseError
An error that occurred because a repository string could not be parsed for a specific reason
UrlParseError(ParseError)
An error that occurred when parsing a repository string
NotGitHubError
An error returned when a non-GitHub URL is parsed
ChangelogVersionNotFound
We searched a changelog file but found no result
Trait Implementations§
source§impl Debug for AxoprojectError
impl Debug for AxoprojectError
source§impl Diagnostic for AxoprojectError
impl Diagnostic for AxoprojectError
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or enums will work just fine.source§fn help(&self) -> Option<Box<dyn Display + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
. Do you have any
advice for the poor soul who’s just run into this issue?source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandler
s to change the display format
of this diagnostic. Read moresource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic
’s Diagnostic::source_code
source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic
’s Diagnostic::labels
to.Diagnostic
s.source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
.source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
source§impl Display for AxoprojectError
impl Display for AxoprojectError
source§impl Error for AxoprojectError
impl Error for AxoprojectError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AxoassetError> for AxoprojectError
impl From<AxoassetError> for AxoprojectError
source§fn from(source: AxoassetError) -> Self
fn from(source: AxoassetError) -> Self
source§impl From<Error> for AxoprojectError
impl From<Error> for AxoprojectError
source§impl From<Error> for AxoprojectError
impl From<Error> for AxoprojectError
source§impl From<ParseError> for AxoprojectError
impl From<ParseError> for AxoprojectError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for AxoprojectError
impl !RefUnwindSafe for AxoprojectError
impl Send for AxoprojectError
impl Sync for AxoprojectError
impl Unpin for AxoprojectError
impl !UnwindSafe for AxoprojectError
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
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>
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>
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 more