Enum sui_sdk_types::types::ExecutionError

source ·
pub enum ExecutionError {
Show 37 variants InsufficientGas, InvalidGasObject, InvariantViolation, FeatureNotYetSupported, ObjectTooBig { object_size: u64, max_object_size: u64, }, PackageTooBig { object_size: u64, max_object_size: u64, }, CircularObjectOwnership { object: ObjectId, }, InsufficientCoinBalance, CoinBalanceOverflow, PublishErrorNonZeroAddress, SuiMoveVerificationError, MovePrimitiveRuntimeError { location: Option<MoveLocation>, }, MoveAbort { location: MoveLocation, code: u64, }, VmVerificationOrDeserializationError, VmInvariantViolation, FunctionNotFound, ArityMismatch, TypeArityMismatch, NonEntryFunctionInvoked, CommandArgumentError { argument: u16, kind: CommandArgumentError, }, TypeArgumentError { type_argument: u16, kind: TypeArgumentError, }, UnusedValueWithoutDrop { result: u16, subresult: u16, }, InvalidPublicFunctionReturnType { index: u16, }, InvalidTransferObject, EffectsTooLarge { current_size: u64, max_size: u64, }, PublishUpgradeMissingDependency, PublishUpgradeDependencyDowngrade, PackageUpgradeError { kind: PackageUpgradeError, }, WrittenObjectsTooLarge { object_size: u64, max_object_size: u64, }, CertificateDenied, SuiMoveVerificationTimedout, SharedObjectOperationNotAllowed, InputObjectDeleted, ExecutionCancelledDueToSharedObjectCongestion { congested_objects: Vec<ObjectId>, }, AddressDeniedForCoin { address: Address, coin_type: String, }, CoinTypeGlobalPause { coin_type: String, }, ExecutionCancelledDueToRandomnessUnavailable,
}

Variants§

§

InsufficientGas

Insufficient Gas

§

InvalidGasObject

Invalid Gas Object.

§

InvariantViolation

Invariant Violation

§

FeatureNotYetSupported

Attempted to used feature that is not supported yet

§

ObjectTooBig

Move object is larger than the maximum allowed size

Fields

§object_size: u64
§max_object_size: u64
§

PackageTooBig

Package is larger than the maximum allowed size

Fields

§object_size: u64
§max_object_size: u64
§

CircularObjectOwnership

Circular Object Ownership

Fields

§object: ObjectId
§

InsufficientCoinBalance

Insufficient coin balance for requested operation

§

CoinBalanceOverflow

Coin balance overflowed an u64

§

PublishErrorNonZeroAddress

Publish Error, Non-zero Address. The modules in the package must have their self-addresses set to zero.

§

SuiMoveVerificationError

Sui Move Bytecode Verification Error.

§

MovePrimitiveRuntimeError

Error from a non-abort instruction. Possible causes: Arithmetic error, stack overflow, max value depth, etc.“

Fields

§

MoveAbort

Move runtime abort

Fields

§location: MoveLocation
§code: u64
§

VmVerificationOrDeserializationError

Bytecode verification error.

§

VmInvariantViolation

MoveVm invariant violation

§

FunctionNotFound

Function not found

§

ArityMismatch

Arity mismatch for Move function. The number of arguments does not match the number of parameters

§

TypeArityMismatch

Type arity mismatch for Move function. Mismatch between the number of actual versus expected type arguments.

§

NonEntryFunctionInvoked

Non Entry Function Invoked. Move Call must start with an entry function.

§

CommandArgumentError

Invalid command argument

Fields

§argument: u16
§

TypeArgumentError

Type argument error

Fields

§type_argument: u16
§

UnusedValueWithoutDrop

Unused result without the drop ability.

Fields

§result: u16
§subresult: u16
§

InvalidPublicFunctionReturnType

Invalid public Move function signature. Unsupported return type for return value

Fields

§index: u16
§

InvalidTransferObject

Invalid Transfer Object, object does not have public transfer.

§

EffectsTooLarge

Effects from the transaction are too large

Fields

§current_size: u64
§max_size: u64
§

PublishUpgradeMissingDependency

Publish or Upgrade is missing dependency

§

PublishUpgradeDependencyDowngrade

Publish or Upgrade dependency downgrade.

Indirect (transitive) dependency of published or upgraded package has been assigned an on-chain version that is less than the version required by one of the package’s transitive dependencies.

§

PackageUpgradeError

Invalid package upgrade

§

WrittenObjectsTooLarge

Indicates the transaction tried to write objects too large to storage

Fields

§object_size: u64
§max_object_size: u64
§

CertificateDenied

Certificate is on the deny list

§

SuiMoveVerificationTimedout

Sui Move Bytecode verification timed out.

§

SharedObjectOperationNotAllowed

The requested shared object operation is not allowed

§

InputObjectDeleted

Requested shared object has been deleted

§

ExecutionCancelledDueToSharedObjectCongestion

Certificate is cancelled due to congestion on shared objects

Fields

§congested_objects: Vec<ObjectId>
§

AddressDeniedForCoin

Address is denied for this coin type

Fields

§address: Address
§coin_type: String
§

CoinTypeGlobalPause

Coin type is globally paused for use

Fields

§coin_type: String
§

ExecutionCancelledDueToRandomnessUnavailable

Certificate is cancelled because randomness could not be generated this epoch

Trait Implementations§

source§

impl Clone for ExecutionError

source§

fn clone(&self) -> ExecutionError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExecutionError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ExecutionError

Available on crate feature serde only.
source§

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 JsonSchema for ExecutionError

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl PartialEq for ExecutionError

source§

fn eq(&self, other: &ExecutionError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExecutionError

Available on crate feature serde only.
source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for ExecutionError

source§

impl StructuralPartialEq for ExecutionError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,