pub enum MarkdownError {
ValidationError {
kind: ValidationErrorKind,
context: ErrorContext,
},
EnhancedNetworkError {
kind: NetworkErrorKind,
context: ErrorContext,
},
AuthenticationError {
kind: AuthErrorKind,
context: ErrorContext,
},
ContentError {
kind: ContentErrorKind,
context: ErrorContext,
},
ConverterError {
kind: ConverterErrorKind,
context: ErrorContext,
},
ConfigurationError {
kind: ConfigErrorKind,
context: ErrorContext,
},
NetworkError {
message: String,
},
ParseError {
message: String,
},
InvalidUrl {
url: String,
},
AuthError {
message: String,
},
LegacyConfigurationError {
message: String,
},
}Expand description
Error types for the markdowndown library.
Variants§
ValidationError
Validation errors for invalid input
EnhancedNetworkError
Enhanced network-related errors with detailed context
AuthenticationError
Authentication and authorization errors
ContentError
Content processing and parsing errors
ConverterError
Converter-specific processing errors
ConfigurationError
Configuration and system setup errors
NetworkError
Network-related errors
ParseError
Parsing errors
InvalidUrl
Invalid URL errors
AuthError
Authentication errors
LegacyConfigurationError
Legacy configuration errors - renamed to avoid conflicts
Implementations§
Source§impl MarkdownError
impl MarkdownError
Sourcepub fn context(&self) -> Option<&ErrorContext>
pub fn context(&self) -> Option<&ErrorContext>
Returns the error context if available.
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true if this error is potentially retryable.
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Returns true if recovery strategies should be attempted.
Sourcepub fn suggestions(&self) -> Vec<String>
pub fn suggestions(&self) -> Vec<String>
Returns user-friendly suggestions for resolving this error.
Trait Implementations§
Source§impl Debug for MarkdownError
impl Debug for MarkdownError
Source§impl Display for MarkdownError
impl Display for MarkdownError
Source§impl Error for MarkdownError
impl Error for MarkdownError
1.30.0 · 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 Freeze for MarkdownError
impl RefUnwindSafe for MarkdownError
impl Send for MarkdownError
impl Sync for MarkdownError
impl Unpin for MarkdownError
impl UnsafeUnpin for MarkdownError
impl UnwindSafe for MarkdownError
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