pub struct QoreTxError {
pub code: u32,
pub codespace: String,
pub reason: String,
pub raw_log: String,
pub tx_hash: String,
}Expand description
A decoded transaction error: a non-zero ABCI result code from CheckTx or
DeliverTx, mapped (where possible) to a human-readable reason.
Fields§
§code: u32The non-zero ABCI result code.
codespace: StringThe module that produced the error (e.g. "sdk", "bank", "amm"). An
empty codespace means the root SDK codespace.
reason: StringThe mapped human-readable description, or a generic fallback when the
(codespace, code) pair is not recognized.
raw_log: StringThe chain’s raw_log string for the failed tx (may be empty).
tx_hash: StringThe failed tx hash, when known.
Trait Implementations§
Source§impl Clone for QoreTxError
impl Clone for QoreTxError
Source§fn clone(&self) -> QoreTxError
fn clone(&self) -> QoreTxError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QoreTxError
impl Debug for QoreTxError
Source§impl Display for QoreTxError
impl Display for QoreTxError
impl Eq for QoreTxError
Source§impl Error for QoreTxError
impl Error for QoreTxError
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<QoreTxError> for Error
impl From<QoreTxError> for Error
Source§fn from(source: QoreTxError) -> Self
fn from(source: QoreTxError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QoreTxError
impl PartialEq for QoreTxError
Source§fn eq(&self, other: &QoreTxError) -> bool
fn eq(&self, other: &QoreTxError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QoreTxError
Auto Trait Implementations§
impl Freeze for QoreTxError
impl RefUnwindSafe for QoreTxError
impl Send for QoreTxError
impl Sync for QoreTxError
impl Unpin for QoreTxError
impl UnsafeUnpin for QoreTxError
impl UnwindSafe for QoreTxError
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