pub enum Error {
Show 15 variants
Io(Error),
Terminal(String),
Event(String),
Command(String),
Component(String),
Model(String),
Config(String),
Custom(Box<dyn Error + Send + Sync>),
AsyncRuntime(String),
ResourceLimit(String),
Validation(String),
Parse(String),
Timeout(String),
ChannelSend(String),
ChannelRecv(RecvError),
}Expand description
Main error type for the hojicha framework
Variants§
Io(Error)
I/O error (terminal operations, file access, etc.)
Terminal(String)
Terminal-specific error
Event(String)
Event handling error
Command(String)
Command execution error
Component(String)
Component error
Model(String)
Model update error
Config(String)
Configuration error
Custom(Box<dyn Error + Send + Sync>)
Custom error for user-defined errors
AsyncRuntime(String)
Async runtime error
ResourceLimit(String)
Resource limit exceeded
Validation(String)
Validation error
Parse(String)
Parsing error
Timeout(String)
Timeout error
ChannelSend(String)
Channel send error (made generic without the type parameter)
ChannelRecv(RecvError)
Channel receive error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter