ExecutionError
ExecutionError
enum ExecutionError
An error that can occur during the execution of a transaction
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
ExecutionError.accountNotSharedObject(objectId:)
case accountNotSharedObject(objectId: ObjectId)
The account object named by a Move authenticator is not a shared object: it is immutable, or owned by an address or by another object. An account must be shared so that a transaction carrying a Move authenticator is ordered by consensus.
ExecutionError.addressDeniedForCoin(address:coinType:)
case addressDeniedForCoin(address: Address, coinType: String)
Address is denied for this coin type
ExecutionError.arityMismatch
case arityMismatch
Arity mismatch for Move function. The number of arguments does not match the number of parameters
ExecutionError.authenticatorFunctionNotFound(objectId:)
case authenticatorFunctionNotFound(objectId: ObjectId)
The account object named by a Move authenticator has no authenticator function: the object has no authenticator function field, or the field cannot be read. Nothing can authenticate the transaction.
ExecutionError.certificateDenied
case certificateDenied
Certificate is on the deny list
ExecutionError.circularObjectOwnership(object:)
case circularObjectOwnership(object: ObjectId)
Circular Object Ownership
ExecutionError.coinBalanceOverflow
case coinBalanceOverflow
Coin balance overflowed an u64
ExecutionError.coinTypeGlobalPause(coinType:)
case coinTypeGlobalPause(coinType: String)
Coin type is globally paused for use
ExecutionError.commandArgument(argument:kind:)
case commandArgument(argument: UInt16, kind: CommandArgumentError)
Invalid command argument
ExecutionError.effectsTooLarge(currentSize:maxSize:)
case effectsTooLarge(currentSize: UInt64, maxSize: UInt64)
Effects from the transaction are too large
ExecutionError.executionCanceledDueToExecutionWorkerCongestion(suggestedGasPrice:)
case executionCanceledDueToExecutionWorkerCongestion(suggestedGasPrice: UInt64)
Certificate is canceled because the execution workers are congested; suggested gas price can be used to give this certificate more priority. No individual object is responsible, so none is reported.
ExecutionError.executionCanceledDueToRandomnessUnavailable
case executionCanceledDueToRandomnessUnavailable
Certificate is canceled because randomness could not be generated this epoch
ExecutionError.executionCanceledDueToSharedObjectCongestion(congestedObjects:)
case executionCanceledDueToSharedObjectCongestion(congestedObjects: [ObjectId])
Certificate is canceled due to congestion on shared objects
ExecutionError.executionCanceledDueToSharedObjectCongestionV2(congestedObjects:suggestedGasPrice:)
case executionCanceledDueToSharedObjectCongestionV2(congestedObjects: [ObjectId], suggestedGasPrice: UInt64)
Certificate is canceled due to congestion on shared objects; suggested gas price can be used to give this certificate more priority.
ExecutionError.featureNotYetSupported
case featureNotYetSupported
Attempted to used feature that is not supported yet
ExecutionError.functionNotFound
case functionNotFound
Function not found
ExecutionError.inputObjectDeleted
case inputObjectDeleted
Requested shared object has been deleted
ExecutionError.insufficientCoinBalance
case insufficientCoinBalance
Insufficient coin balance for requested operation
ExecutionError.insufficientGas
case insufficientGas
Insufficient Gas
ExecutionError.invalidGasObject
case invalidGasObject
Invalid Gas Object.
ExecutionError.invalidLinkage
case invalidLinkage
A valid linkage was unable to be determined for the transaction or one of its commands.
ExecutionError.invalidPublicFunctionReturnType(index:)
case invalidPublicFunctionReturnType(index: UInt16)
Invalid public Move function signature. Unsupported return type for return value
ExecutionError.invalidTransferObject
case invalidTransferObject
Invalid Transfer Object, object does not have public transfer.
ExecutionError.invariantViolation
case invariantViolation
Invariant Violation
ExecutionError.iotaMoveVerification
case iotaMoveVerification
IOTA Move Bytecode Verification Error.
ExecutionError.iotaMoveVerificationTimeout
case iotaMoveVerificationTimeout
IOTA Move Bytecode verification timed out.
ExecutionError.moveAbort(location:code:)
case moveAbort(location: MoveLocation, code: UInt64)
Move runtime abort
ExecutionError.moveAuthentication(error:)
case moveAuthentication(error: ExecutionErrorWrapper)
The transaction's Move-based authentication failed while executing an authenticator, before the programmable transaction was run. The wrapped error is the failure produced by the authenticator's execution.
ExecutionError.movePrimitiveRuntime(location:)
case movePrimitiveRuntime(location: MoveLocation?)
Error from a non-abort instruction. Possible causes: Arithmetic error, stack overflow, max value depth, etc."
ExecutionError.moveRawValueTooBig(valueSize:maxScaledSize:)
case moveRawValueTooBig(valueSize: UInt64, maxScaledSize: UInt64)
Move value (possibly an upgrade ticket or a dev-inspect value) is larger than the maximum size. The maximum is scaled based on the type of the value.
ExecutionError.moveVectorElemTooBig(valueSize:maxScaledSize:)
case moveVectorElemTooBig(valueSize: UInt64, maxScaledSize: UInt64)
Move vector element (passed to MakeMoveVec) is larger than the maximum size. The maximum is scaled based on the type of the vector element.
ExecutionError.nonEntryFunctionInvoked
case nonEntryFunctionInvoked
Non Entry Function Invoked. Move Call must start with an entry function.
ExecutionError.objectTooBig(objectSize:maxObjectSize:)
case objectTooBig(objectSize: UInt64, maxObjectSize: UInt64)
Move object is larger than the maximum allowed size
ExecutionError.packageTooBig(objectSize:maxObjectSize:)
case packageTooBig(objectSize: UInt64, maxObjectSize: UInt64)
Package is larger than the maximum allowed size
ExecutionError.packageUpgrade(kind:)
case packageUpgrade(kind: PackageUpgradeError)
Invalid package upgrade
ExecutionError.publishErrorNonZeroAddress
case publishErrorNonZeroAddress
Publish Error, Non-zero Address. The modules in the package must have their self-addresses set to zero.
ExecutionError.publishUpgradeDependencyDowngrade
case 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.
ExecutionError.publishUpgradeMissingDependency
case publishUpgradeMissingDependency
Publish or Upgrade is missing dependency
ExecutionError.sharedObjectOperationNotAllowed
case sharedObjectOperationNotAllowed
The requested shared object operation is not allowed
ExecutionError.typeArgument(typeArgument:kind:)
case typeArgument(typeArgument: UInt16, kind: TypeArgumentError)
Type argument error
ExecutionError.typeArityMismatch
case typeArityMismatch
Type arity mismatch for Move function. Mismatch between the number of actual versus expected type arguments.
ExecutionError.unusedValueWithoutDrop(result:subresult:)
case unusedValueWithoutDrop(result: UInt16, subresult: UInt16)
Unused result without the drop ability.
ExecutionError.vmInvariantViolation
case vmInvariantViolation
MoveVm invariant violation
ExecutionError.vmVerificationOrDeserialization
case vmVerificationOrDeserialization
Bytecode verification error.
ExecutionError.writtenObjectsTooLarge(objectSize:maxObjectSize:)
case writtenObjectsTooLarge(objectSize: UInt64, maxObjectSize: UInt64)
Indicates the transaction tried to write objects too large to storage
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func toDisplayString() -> String
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.