Enum libimagentrymarkdown::error::MarkdownErrorKind
[−]
pub enum MarkdownErrorKind { Msg(String), StoreError(StoreErrorKind), LinkError(LinkErrorKind), RefError(RefErrorKind), UrlParserError(ParseError), MarkdownRenderError, LinkParsingError, StoreGetError(StoreId), UndecidableLinkType(String), UrlProcessingError(Url), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
StoreError(StoreErrorKind)
LinkError(LinkErrorKind)
RefError(RefErrorKind)
UrlParserError(ParseError)
MarkdownRenderError
LinkParsingError
StoreGetError(StoreId)
UndecidableLinkType(String)
UrlProcessingError(Url)
Methods
impl MarkdownErrorKind
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<MarkdownErrorKind> for MarkdownError
fn from(e: MarkdownErrorKind) -> Self
Performs the conversion.
impl Debug for MarkdownErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for MarkdownErrorKind
impl From<StoreErrorKind> for MarkdownErrorKind
fn from(e: StoreErrorKind) -> Self
Performs the conversion.
impl From<LinkErrorKind> for MarkdownErrorKind
fn from(e: LinkErrorKind) -> Self
Performs the conversion.
impl From<RefErrorKind> for MarkdownErrorKind
fn from(e: RefErrorKind) -> Self
Performs the conversion.
impl<'a> From<&'a str> for MarkdownErrorKind
impl From<String> for MarkdownErrorKind
impl From<MarkdownError> for MarkdownErrorKind
fn from(e: MarkdownError) -> Self
Performs the conversion.