Struct envuse_parser::errors::program_error::ProgramError
source · 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)>
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()