Enum git_cliff_core::error::Error
source · pub enum Error {
Show 29 variants
IoError(Error),
Utf8Error(Utf8Error),
GitError(Error),
RepoError(String),
ConfigError(ConfigError),
LoggerError(String),
ParseError(Error),
GroupError(String),
ChangelogError(String),
TemplateParseError(String),
TemplateRenderError(String),
TemplateRenderDetailedError(String, String),
TemplateError(Error),
ArgumentError(String),
EmbeddedError(String),
DeserializeError(Error),
JsonError(Error),
RegexError(Error),
SystemTimeError(SystemTimeError),
IntParseError(TryFromIntError),
FieldError(String),
SemverError(Error),
HttpClientError(Error),
HttpClientMiddlewareError(Error),
HttpHeaderError(InvalidHeaderValue),
PaginationError(String),
UrlParseError(ParseError),
RemoteNotSetError,
DirsError(String),
}Expand description
Library related errors that we are exposing to the rest of the workspaces.
Variants§
IoError(Error)
Error that may occur while I/O operations.
Utf8Error(Utf8Error)
Error that may occur when attempting to interpret a sequence of u8 as a string.
GitError(Error)
repo only.Error variant that represents errors coming out of libgit2.
RepoError(String)
repo only.Error variant that represents other repository related errors.
ConfigError(ConfigError)
Error that may occur while parsing the config file.
LoggerError(String)
A possible error while initializing the logger.
ParseError(Error)
When commit’s not follow the conventional commit structure we throw this error.
GroupError(String)
Error that may occur while grouping commits.
ChangelogError(String)
Error that may occur while generating changelog.
TemplateParseError(String)
Error that may occur while parsing the template.
TemplateRenderError(String)
Error that may occur while rendering the template.
TemplateRenderDetailedError(String, String)
Error that may occur while rendering the template.
TemplateError(Error)
Error that may occur during more general template operations.
ArgumentError(String)
Error that may occur while parsing the command line arguments.
EmbeddedError(String)
Error that may occur while extracting the embedded content.
DeserializeError(Error)
Errors that may occur when deserializing types from TOML format.
JsonError(Error)
Errors that may occur while de/serializing JSON format.
RegexError(Error)
Errors that may occur during parsing or compiling a regular expression.
SystemTimeError(SystemTimeError)
Error that may occur due to system time related anomalies.
IntParseError(TryFromIntError)
Error that may occur while parsing integers.
FieldError(String)
Error that may occur while processing parsers that define field and value matchers
SemverError(Error)
Error that may occur while parsing a SemVer version or version requirement.
HttpClientError(Error)
github or gitlab or bitbucket only.The errors that may occur when processing a HTTP request.
HttpClientMiddlewareError(Error)
github or gitlab or bitbucket only.The errors that may occur while constructing the HTTP client with middleware.
HttpHeaderError(InvalidHeaderValue)
github or gitlab or bitbucket only.A possible error when converting a HeaderValue from a string or byte slice.
PaginationError(String)
Error that may occur during handling pages.
UrlParseError(ParseError)
The errors that may occur while parsing URLs.
RemoteNotSetError
Error that may occur when a remote is not set.
DirsError(String)
Error that may occur while handling location of directories.
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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
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