pub struct ProgramError {
pub message: String,
pub span: Option<Span>,
pub source: String,
pub location: Option<String>,
pub cause: Option<Box<dyn Error>>,
}
Fields§
§message: String
§span: Option<Span>
§source: String
§location: Option<String>
§cause: Option<Box<dyn Error>>
Implementations§
Source§impl ProgramError
impl ProgramError
pub fn get_message(&self) -> String
Trait Implementations§
Source§impl Debug for ProgramError
impl Debug for ProgramError
Source§impl Display for ProgramError
impl Display for ProgramError
Source§impl Error for ProgramError
impl Error for ProgramError
1.30.0 · 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 ProgramError
impl !RefUnwindSafe for ProgramError
impl !Send for ProgramError
impl !Sync for ProgramError
impl Unpin for ProgramError
impl !UnwindSafe for ProgramError
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