pub struct SQLException { /* private fields */ }
Expand description
§SQLException
- code: exception code
- msg: exception msg
- line: error line
- path: error file path
- level: exception level
- reason: reason for error
- stmt: sql statement (error)
- tips: how to recover
Trait Implementations§
Source§impl Clone for SQLException
impl Clone for SQLException
Source§fn clone(&self) -> SQLException
fn clone(&self) -> SQLException
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommonParamImpl for SQLException
impl CommonParamImpl for SQLException
Source§impl Debug for SQLException
impl Debug for SQLException
Source§impl Default for SQLException
impl Default for SQLException
Source§impl DerefException for SQLException
impl DerefException for SQLException
fn deref_mut_exception(&mut self) -> Self
Source§impl Display for SQLException
impl Display for SQLException
Source§impl Error for SQLException
impl Error for SQLException
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl Exception for SQLException
impl Exception for SQLException
fn code(&self) -> u32
fn msg(&self) -> &str
fn level(&self) -> ExceptionLevel
fn set_code(&mut self, code: u32)
fn set_level(&mut self, level: ExceptionLevel)
fn set_msg(&mut self, msg: &str)
fn get_type(&self) -> Exceptions
fn timestamp(&self) -> Duration
Source§impl FromBuilder for SQLException
impl FromBuilder for SQLException
Source§type Input = SQLExceptionBuilder
type Input = SQLExceptionBuilder
builder type
Source§type Output = SQLException
type Output = SQLException
exception type
fn from_builder(builder: &Self::Input) -> Self::Output
Source§impl NewFrom for SQLException
impl NewFrom for SQLException
Source§impl PartialEq for SQLException
impl PartialEq for SQLException
Source§impl ReasonParamImpl for SQLException
impl ReasonParamImpl for SQLException
Source§impl SQLParamImpl for SQLException
impl SQLParamImpl for SQLException
Source§impl SuperBuilderImpl<SQLException> for SQLExceptionBuilder
impl SuperBuilderImpl<SQLException> for SQLExceptionBuilder
fn new() -> Self
fn code(&self) -> u32
fn msg(&self) -> &str
fn level(&self) -> ExceptionLevel
fn set_code(&mut self, code: u32) -> &mut Self
fn set_msg(&mut self, msg: &str) -> &mut Self
fn set_level(&mut self, level: ExceptionLevel) -> &mut Self
fn exception_type(&self) -> Exceptions
fn timestamp(&self) -> Duration
fn build(&mut self) -> SQLException
impl StructuralPartialEq for SQLException
Auto Trait Implementations§
impl Freeze for SQLException
impl RefUnwindSafe for SQLException
impl Send for SQLException
impl Sync for SQLException
impl Unpin for SQLException
impl UnwindSafe for SQLException
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