pub enum AppError {
Message(String),
Io(Error),
Parse {
message: String,
path: PathBuf,
line_number: i32,
},
}Variants§
Trait Implementations§
Source§impl Error for AppError
impl Error for AppError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<ParseIntError> for AppError
impl From<ParseIntError> for AppError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for AppError
impl From<PatternError> for AppError
Source§fn from(e: PatternError) -> Self
fn from(e: PatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppError
impl !RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl !UnwindSafe for AppError
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