pub enum ConfigEasyError {
Database(Error),
Io(Error),
InvalidIdentifier(String),
InvalidSelection,
ValidationFailed {
key: String,
message: String,
},
InvalidActionKey(String),
ReservedActionKey(String),
DuplicateActionKey(String),
ActionFailed {
key: String,
message: String,
},
}Expand description
A custom error type for the configuration menu, encompassing various error scenarios that may occur during menu operation.
Variants§
Database(Error)
An error that occurred while interacting with the SQLite database.
Io(Error)
An error that occurred during input/output operations, such as reading from or writing to the terminal.
InvalidIdentifier(String)
An error indicating that a provided SQL identifier (e.g., table name, column name) is invalid.
InvalidSelection
An error indicating that the user made an invalid selection in the menu (e.g. out of range).
ValidationFailed
An error indicating that validation of a proposed setting value failed.
InvalidActionKey(String)
An error indicating that a provided action key is invalid (e.g., empty or numeric).
ReservedActionKey(String)
A custom action attempted to use a reserved menu key.
DuplicateActionKey(String)
A custom action attempted to use a key already used by another action.
ActionFailed
An error indicating that a custom action callback failed.
Trait Implementations§
Source§impl Debug for ConfigEasyError
impl Debug for ConfigEasyError
Source§impl Display for ConfigEasyError
impl Display for ConfigEasyError
Source§impl Error for ConfigEasyError
impl Error for ConfigEasyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()