CommandArgumentError
sealed class CommandArgumentError
An error with an argument to a command
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Inheritors
Types
| Name | Summary |
|---|---|
| IndexOutOfBounds | data class IndexOutOfBounds(val index: UShort) : CommandArgumentError Out of bounds access to input or results |
| InvalidArgumentArity | object InvalidArgumentArity : CommandArgumentError Invalid argument arity. Expected a single argument but found a result that expanded to multiple arguments. |
| InvalidArgumentToPrivateEntryFunction | object InvalidArgumentToPrivateEntryFunction : CommandArgumentError Invalid argument to private entry function. Private entry functions cannot take arguments from other Move functions. |
| InvalidBcsBytes | object InvalidBcsBytes : CommandArgumentError The argument cannot be deserialized into a value of the specified type |
| InvalidGasCoinUsage | object InvalidGasCoinUsage : CommandArgumentError Invalid usage of Gas coin. The Gas coin can only be used by-value with a TransferObjects command. |
| InvalidObjectByMutRef | object InvalidObjectByMutRef : CommandArgumentError Immutable objects cannot be passed by mutable reference, &mut. |
| InvalidObjectByValue | object InvalidObjectByValue : CommandArgumentError Immutable objects cannot be passed by-value. |
| InvalidResultArity | data class InvalidResultArity(val result: UShort) : CommandArgumentError Invalid usage of result. Expected a single result but found either no return value or multiple. |
| InvalidUsageOfPureArgument | object InvalidUsageOfPureArgument : CommandArgumentError The argument cannot be instantiated from raw bytes |
| InvalidValueUsage | object InvalidValueUsage : CommandArgumentError Invalid usage of move value. |
| SecondaryIndexOutOfBounds | data class SecondaryIndexOutOfBounds(val result: UShort, val subresult: UShort) : CommandArgumentError Out of bounds access to subresult |
| SharedObjectOperationNotAllowed | object SharedObjectOperationNotAllowed : CommandArgumentError Shared object operations such a wrapping, freezing, or converting to owned are not allowed. |
| TypeMismatch | object TypeMismatch : CommandArgumentError The type of the value does not match the expected type |
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
IndexOutOfBounds
data class IndexOutOfBounds(val index: UShort) : CommandArgumentError
Out of bounds access to input or results
Constructors
| IndexOutOfBounds | constructor(index: UShort) |
Properties
| Name | Summary |
|---|---|
| index | val index: UShort |
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidArgumentArity
object InvalidArgumentArity : CommandArgumentError
Invalid argument arity. Expected a single argument but found a result that expanded to multiple arguments.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidArgumentToPrivateEntryFunction
object InvalidArgumentToPrivateEntryFunction : CommandArgumentError
Invalid argument to private entry function. Private entry functions cannot take arguments from other Move functions.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidBcsBytes
object InvalidBcsBytes : CommandArgumentError
The argument cannot be deserialized into a value of the specified type
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidGasCoinUsage
object InvalidGasCoinUsage : CommandArgumentError
Invalid usage of Gas coin. The Gas coin can only be used by-value with a TransferObjects command.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidObjectByMutRef
object InvalidObjectByMutRef : CommandArgumentError
Immutable objects cannot be passed by mutable reference, &mut.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidObjectByValue
object InvalidObjectByValue : CommandArgumentError
Immutable objects cannot be passed by-value.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidResultArity
data class InvalidResultArity(val result: UShort) : CommandArgumentError
Invalid usage of result. Expected a single result but found either no return value or multiple.
Constructors
| InvalidResultArity | constructor(result: UShort) |
Properties
| Name | Summary |
|---|---|
| result | val result: UShort |
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidUsageOfPureArgument
object InvalidUsageOfPureArgument : CommandArgumentError
The argument cannot be instantiated from raw bytes
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
InvalidValueUsage
object InvalidValueUsage : CommandArgumentError
Invalid usage of move value.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
SecondaryIndexOutOfBounds
data class SecondaryIndexOutOfBounds(val result: UShort, val subresult: UShort) : CommandArgumentError
Out of bounds access to subresult
Constructors
| SecondaryIndexOutOfBounds | constructor(result: UShort, subresult: UShort) |
Properties
| Name | Summary |
|---|---|
| result | val result: UShort |
| subresult | val subresult: UShort |
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
SharedObjectOperationNotAllowed
object SharedObjectOperationNotAllowed : CommandArgumentError
Shared object operations such a wrapping, freezing, or converting to owned are not allowed.
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
TypeMismatch
object TypeMismatch : CommandArgumentError
The type of the value does not match the expected type
Functions
| Name | Summary |
|---|---|
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |