pub enum EuvError {
Io {
message: String,
error: Error,
},
IoPath {
message: String,
path: PathBuf,
error: Error,
},
Utf8 {
message: String,
error: FromUtf8Error,
},
Server(String),
Message(String),
Watch(Error),
}Expand description
The error type for the euv CLI application.
Covers all failure modes including I/O errors, server errors, HTML generation errors, and general application errors.
Variants§
Io
An I/O error with additional context about the operation.
Fields
IoPath
An I/O error with path context.
Fields
Utf8
A UTF-8 decoding error.
Fields
§
error: FromUtf8ErrorThe underlying UTF-8 error.
Server(String)
A server error from the hyperlane framework.
Message(String)
A general application error with a descriptive message.
Watch(Error)
A file watcher (notify) error.
Trait Implementations§
Source§impl Display for EuvError
Implements Display for EuvError to provide human-readable error messages.
impl Display for EuvError
Implements Display for EuvError to provide human-readable error messages.
Source§impl Error for EuvError
Implements Error for EuvError so it integrates with the Rust error ecosystem.
impl Error for EuvError
Implements Error for EuvError so it integrates with the Rust error ecosystem.
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.
§Returns
Option<&(dyn std::error::Error + 'static)>- The underlying error source.
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 !RefUnwindSafe for EuvError
impl !UnwindSafe for EuvError
impl Freeze for EuvError
impl Send for EuvError
impl Sync for EuvError
impl Unpin for EuvError
impl UnsafeUnpin for EuvError
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendSync for T
impl<T> AnySync for T
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