pub trait UserFriendlyError {
// Required methods
fn user_message(&self) -> String;
fn context(&self) -> Option<String>;
fn suggestions(&self) -> Vec<String>;
fn category(&self) -> ErrorCategory;
}Expand description
Trait for providing user-friendly error reporting with context and suggestions
Required Methods§
Sourcefn user_message(&self) -> String
fn user_message(&self) -> String
Get a user-friendly error message
Sourcefn suggestions(&self) -> Vec<String>
fn suggestions(&self) -> Vec<String>
Get suggested actions to resolve the error
Sourcefn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Get the error category for grouping similar errors
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".