TypeArgumentError
enum TypeArgumentError : Enum<TypeArgumentError>
An error with a type argument
BCS
The BCS serialized form for this type is defined by the following ABNF:
type-argument-error = type-not-found / constraint-not-satisfied
type-not-found = %d00
constraint-not-satisfied = %d01
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 |
|---|---|
| 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 |
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 |