pub struct ErrorData { /* private fields */ }
Expand description
This struct contains the error code and stack trace (i.e., the “error info” string)
for ResultCode::Error
exceptions.
Implementations§
Source§impl ErrorData
impl ErrorData
Sourcepub fn error_code(&self) -> Value
pub fn error_code(&self) -> Value
Returns the error code.
Sourcepub fn error_info(&self) -> Value
pub fn error_info(&self) -> Value
Returns the human-readable stack trace as a string.
Trait Implementations§
impl Eq for ErrorData
impl StructuralPartialEq for ErrorData
Auto Trait Implementations§
impl Freeze for ErrorData
impl !RefUnwindSafe for ErrorData
impl !Send for ErrorData
impl !Sync for ErrorData
impl Unpin for ErrorData
impl !UnwindSafe for ErrorData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.