pub enum Error {
Show 32 variants
IoError(Error),
Utf8Error(Utf8Error),
GitError(Error),
SetCommitRangeError(String, 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),
PatternError(PatternError),
UnconventionalCommitsError(i32),
}
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.
SetCommitRangeError(String, Error)
repo
only.Error that may occur when failed to set a commit range.
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)
remote
only.The errors that may occur when processing a HTTP request.
HttpClientMiddlewareError(Error)
remote
only.The errors that may occur while constructing the HTTP client with middleware.
HttpHeaderError(InvalidHeaderValue)
remote
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.
PatternError(PatternError)
Error that may occur while constructing patterns.
UnconventionalCommitsError(i32)
Error that may occur when unconventional commits are found.
See require_conventional
option for more information.
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<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.