pub enum AptosErrorCode {
Show 21 variants
AccountNotFound,
ResourceNotFound,
ModuleNotFound,
StructFieldNotFound,
VersionNotFound,
TransactionNotFound,
TableItemNotFound,
BlockNotFound,
StateValueNotFound,
VersionPruned,
BlockPruned,
InvalidInput,
InvalidTransactionUpdate,
SequenceNumberTooOld,
VmError,
HealthCheckFailed,
MempoolIsFull,
InternalError,
WebFrameworkError,
BcsNotSupported,
ApiDisabled,
}Expand description
AptosErrorCode : These codes provide more granular error information beyond just the HTTP status code of the response. These codes provide more granular error information beyond just the HTTP status code of the response.
Variants§
AccountNotFound
ResourceNotFound
ModuleNotFound
StructFieldNotFound
VersionNotFound
TransactionNotFound
TableItemNotFound
BlockNotFound
StateValueNotFound
VersionPruned
BlockPruned
InvalidInput
InvalidTransactionUpdate
SequenceNumberTooOld
VmError
HealthCheckFailed
MempoolIsFull
InternalError
WebFrameworkError
BcsNotSupported
ApiDisabled
Trait Implementations§
Source§impl Clone for AptosErrorCode
impl Clone for AptosErrorCode
Source§fn clone(&self) -> AptosErrorCode
fn clone(&self) -> AptosErrorCode
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 moreimpl Copy for AptosErrorCode
Source§impl Debug for AptosErrorCode
impl Debug for AptosErrorCode
Source§impl Default for AptosErrorCode
impl Default for AptosErrorCode
Source§fn default() -> AptosErrorCode
fn default() -> AptosErrorCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AptosErrorCode
impl<'de> Deserialize<'de> for AptosErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AptosErrorCode
impl Display for AptosErrorCode
impl Eq for AptosErrorCode
Source§impl Hash for AptosErrorCode
impl Hash for AptosErrorCode
Source§impl Ord for AptosErrorCode
impl Ord for AptosErrorCode
Source§fn cmp(&self, other: &AptosErrorCode) -> Ordering
fn cmp(&self, other: &AptosErrorCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AptosErrorCode
impl PartialEq for AptosErrorCode
Source§fn eq(&self, other: &AptosErrorCode) -> bool
fn eq(&self, other: &AptosErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AptosErrorCode
impl PartialOrd for AptosErrorCode
Source§impl Serialize for AptosErrorCode
impl Serialize for AptosErrorCode
impl StructuralPartialEq for AptosErrorCode
Auto Trait Implementations§
impl Freeze for AptosErrorCode
impl RefUnwindSafe for AptosErrorCode
impl Send for AptosErrorCode
impl Sync for AptosErrorCode
impl Unpin for AptosErrorCode
impl UnsafeUnpin for AptosErrorCode
impl UnwindSafe for AptosErrorCode
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