Skip to main content

TypeArgumentError

enum TypeArgumentError : Enum<TypeArgumentError>

An error with a type argument

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Entries​

TYPE_NOT_FOUNDTYPE_NOT_FOUND
A type was not found in the module specified
CONSTRAINT_NOT_SATISFIEDCONSTRAINT_NOT_SATISFIED
A type provided did not match the specified constraint

Properties​

NameSummary
entriesval entries: EnumEntries<TypeArgumentError>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
nameval name: String
ordinalval ordinal: Int
valueval value: UByte

Functions​

NameSummary
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.
valueOffun valueOf(value: String): TypeArgumentError
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<TypeArgumentError>
Returns an array containing the constants of this enum type, in the order they're declared.

CONSTRAINT_NOT_SATISFIED​

CONSTRAINT_NOT_SATISFIED

A type provided did not match the specified constraint

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int
valueval value: UByte

Functions​

NameSummary
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

TYPE_NOT_FOUND​

TYPE_NOT_FOUND

A type was not found in the module specified

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int
valueval value: UByte

Functions​

NameSummary
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.