pub struct RuntimeErrorStruct {
pub statement: Option<Stmt>,
pub msg: String,
pub line_file: LineFile,
pub previous_error: Option<Box<RuntimeError>>,
pub inside_results: Vec<StmtResult>,
}Fields§
§statement: Option<Stmt>§msg: String§line_file: LineFile§previous_error: Option<Box<RuntimeError>>§inside_results: Vec<StmtResult>Implementations§
Source§impl RuntimeErrorStruct
impl RuntimeErrorStruct
pub fn new( statement: Option<Stmt>, msg: String, line_file: LineFile, previous_error: Option<RuntimeError>, inside_results: Vec<StmtResult>, ) -> Self
Source§impl RuntimeErrorStruct
impl RuntimeErrorStruct
pub fn new_with_just_msg(msg: String) -> Self
pub fn new_with_msg_and_line_file(msg: String, line_file: LineFile) -> Self
pub fn new_with_msg_and_cause(msg: String, cause: RuntimeError) -> Self
Trait Implementations§
Source§impl Debug for RuntimeErrorStruct
impl Debug for RuntimeErrorStruct
Source§impl Display for RuntimeErrorStruct
impl Display for RuntimeErrorStruct
Source§impl Error for RuntimeErrorStruct
impl Error for RuntimeErrorStruct
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 RuntimeErrorStruct
impl RefUnwindSafe for RuntimeErrorStruct
impl !Send for RuntimeErrorStruct
impl !Sync for RuntimeErrorStruct
impl Unpin for RuntimeErrorStruct
impl UnsafeUnpin for RuntimeErrorStruct
impl UnwindSafe for RuntimeErrorStruct
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