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>,
) -> MdBookLintError
pub fn parse_error( line: usize, column: usize, message: impl Into<String>, ) -> MdBookLintError
Create a parse error with position information
Sourcepub fn rule_error(
rule_id: impl Into<String>,
message: impl Into<String>,
) -> MdBookLintError
pub fn rule_error( rule_id: impl Into<String>, message: impl Into<String>, ) -> MdBookLintError
Create a rule error with context
Sourcepub fn config_error(message: impl Into<String>) -> MdBookLintError
pub fn config_error(message: impl Into<String>) -> MdBookLintError
Create a configuration error
Sourcepub fn document_error(message: impl Into<String>) -> MdBookLintError
pub fn document_error(message: impl Into<String>) -> MdBookLintError
Create a document error
Sourcepub fn plugin_error(message: impl Into<String>) -> MdBookLintError
pub fn plugin_error(message: impl Into<String>) -> MdBookLintError
Create a plugin error
Sourcepub fn registry_error(message: impl Into<String>) -> MdBookLintError
pub fn registry_error(message: impl Into<String>) -> MdBookLintError
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§fn from(source: Error) -> MdBookLintError
fn from(source: Error) -> MdBookLintError
Converts to this type from the input type.
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§fn from(source: Error) -> MdBookLintError
fn from(source: Error) -> MdBookLintError
Converts to this type from the input type.
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§fn from(source: Error) -> MdBookLintError
fn from(source: Error) -> MdBookLintError
Converts to this type from the input type.
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§fn from(source: Error) -> MdBookLintError
fn from(source: Error) -> MdBookLintError
Converts to this type from the input type.
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§fn from(source: Error) -> MdBookLintError
fn from(source: Error) -> MdBookLintError
Converts to this type from the input type.
Source§impl From<Error> for MdBookLintError
impl From<Error> for MdBookLintError
Source§fn from(err: Error) -> MdBookLintError
fn from(err: Error) -> MdBookLintError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MdBookLintError
impl !UnwindSafe for MdBookLintError
impl Freeze for MdBookLintError
impl Send for MdBookLintError
impl Sync for MdBookLintError
impl Unpin for MdBookLintError
impl UnsafeUnpin 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