pub trait AlkahestError: Error {
// Required method
fn code(&self) -> &'static str;
// Provided methods
fn remediation(&self) -> Option<&'static str> { ... }
fn span(&self) -> Option<(usize, usize)> { ... }
}Expand description
Core trait shared by every alkahest-core error type.
Required Methods§
Provided Methods§
Sourcefn remediation(&self) -> Option<&'static str>
fn remediation(&self) -> Option<&'static str>
Optional human-readable fix suggestion.