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_FOUND | TYPE_NOT_FOUND A type was not found in the module specified |
| CONSTRAINT_NOT_SATISFIED | CONSTRAINT_NOT_SATISFIED A type provided did not match the specified constraint |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<TypeArgumentError> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| name | val name: String |
| ordinal | val ordinal: Int |
| value | val value: UByte |
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. |
| valueOf | fun 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.) |
| values | fun values(): Array<TypeArgumentError> Returns an array containing the constants of this enum type, in the order they're declared. |
CONSTRAINT_NOT_SATISFIED
A type provided did not match the specified constraint
Properties
| Name | Summary |
|---|---|
| name | val name: String |
| ordinal | val ordinal: Int |
| value | val value: UByte |
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. |
TYPE_NOT_FOUND
A type was not found in the module specified
Properties
| Name | Summary |
|---|---|
| name | val name: String |
| ordinal | val ordinal: Int |
| value | val value: UByte |
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. |