Skip to main content

CommandArgumentError

CommandArgumentError Objects

class CommandArgumentError()

An error with an argument to a command

BCS

The BCS serialized form for this type is defined by the following ABNF:

command-argument-error =  type-mismatch
=/ invalid-bcs-bytes
=/ invalid-usage-of-pure-argument
=/ invalid-argument-to-private-entry-function
=/ index-out-of-bounds
=/ secondary-index-out-of-bound
=/ invalid-result-arity
=/ invalid-gas-coin-usage
=/ invalid-value-usage
=/ invalid-object-by-value
=/ invalid-object-by-mut-ref
=/ shared-object-operation-not-allowed

type-mismatch = %d00
invalid-bcs-bytes = %d01
invalid-usage-of-pure-argument = %d02
invalid-argument-to-private-entry-function = %d03
index-out-of-bounds = %d04 u16
secondary-index-out-of-bound = %d05 u16 u16
invalid-result-arity = %d06 u16
invalid-gas-coin-usage = %d07
invalid-value-usage = %d08
invalid-object-by-value = %d09
invalid-object-by-mut-ref = %d10
shared-object-operation-not-allowed = %d11