pub struct RuntimeErrorStruct {
pub statement: Option<Stmt>,
pub msg: String,
pub conflict_with: Option<ConflictMsg>,
pub line_file: LineFile,
pub previous_error: Option<Box<RuntimeError>>,
pub inside_results: Vec<StmtResult>,
}Fields§
§statement: Option<Stmt>§msg: String§conflict_with: Option<ConflictMsg>§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>, ) -> Self
pub fn new_with_conflict( statement: Option<Stmt>, msg: String, line_file: LineFile, conflict_with: Option<ConflictMsg>, previous_error: Option<RuntimeError>, inside_results: Vec<StmtResult>, ) -> Self
pub fn new_with_msg_previous_error( msg: String, previous_error: Option<RuntimeError>, ) -> Self
pub fn exec_stmt_new( stmt: Option<Stmt>, info: String, previous_error: Option<RuntimeError>, inside_results: Vec<StmtResult>, ) -> Self
pub fn exec_stmt_new_with_stmt( stmt: Stmt, info: String, previous_error: Option<RuntimeError>, inside_results: Vec<StmtResult>, ) -> Self
pub fn exec_stmt_with_message_and_cause( stmt: Stmt, message: String, cause: Option<RuntimeError>, inside_results: Vec<StmtResult>, ) -> 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()
Source§impl From<RuntimeErrorStruct> for RuntimeError
impl From<RuntimeErrorStruct> for RuntimeError
Source§fn from(runtime_error_struct: RuntimeErrorStruct) -> Self
fn from(runtime_error_struct: RuntimeErrorStruct) -> Self
Converts to this type from the input type.
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