pub enum MdBookLintError {
Io(Error),
Parse {
line: usize,
column: usize,
message: String,
},
Config(String),
Rule {
rule_id: String,
message: String,
},
Plugin(String),
Document(String),
Registry(String),
Json(Error),
Yaml(Error),
Toml(Error),
WalkDir(Error),
}Expand description
Main error type for mdbook-lint operations
Variants§
Io(Error)
IO-related errors (file reading, writing, etc.)
Parse
Parsing errors with position information
Config(String)
Configuration-related errors
Rule
Rule execution errors
Plugin(String)
Plugin system errors
Document(String)
Document processing errors
Registry(String)
Registry operation errors
Json(Error)
JSON serialization/deserialization errors
Yaml(Error)
YAML serialization/deserialization errors
Toml(Error)
TOML serialization/deserialization errors
WalkDir(Error)
Directory traversal errors
Implementations§
Source§impl MdBookLintError
Convenience constructors for common error patterns
impl MdBookLintError
Convenience constructors for common error patterns
Sourcepub fn parse_error(
line: usize,
column: usize,
message: impl Into<String>,
) -> Self
pub fn parse_error( line: usize, column: usize, message: impl Into<String>, ) -> Self
Create a parse error with position information
Sourcepub fn rule_error(
rule_id: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn rule_error( rule_id: impl Into<String>, message: impl Into<String>, ) -> Self
Create a rule error with context
Sourcepub fn config_error(message: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn document_error(message: impl Into<String>) -> Self
pub fn document_error(message: impl Into<String>) -> Self
Create a document error
Sourcepub fn plugin_error(message: impl Into<String>) -> Self
pub fn plugin_error(message: impl Into<String>) -> Self
Create a plugin error
Sourcepub fn registry_error(message: impl Into<String>) -> Self
pub fn registry_error(message: impl Into<String>) -> Self
Create a registry error
Trait Implementations§
Source§impl Debug for MdBookLintError
impl Debug for MdBookLintError
Source§impl Display for MdBookLintError
impl Display for MdBookLintError
Source§impl Error for MdBookLintError
impl Error for MdBookLintError
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()
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Auto Trait Implementations§
impl Freeze for MdBookLintError
impl !RefUnwindSafe for MdBookLintError
impl Send for MdBookLintError
impl Sync for MdBookLintError
impl Unpin for MdBookLintError
impl !UnwindSafe for MdBookLintError
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