Skip to main content

TypeArgumentError

type TypeArgumentError

An error with a type argument

BCS

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

```text type-argument-error = type-not-found / constraint-not-satisfied type-not-found = %d00 constraint-not-satisfied = %d01 ```

type TypeArgumentError uint8
const (
// A type was not found in the module specified
TypeArgumentErrorTypeNotFound TypeArgumentError = 0
// A type provided did not match the specified constraint
TypeArgumentErrorConstraintNotSatisfied TypeArgumentError = 1
)

func TypeArgumentErrorFromBcs

func TypeArgumentErrorFromBcs(bcs []byte) (TypeArgumentError, error)

Create this type from BCS encoded bytes.

func TypeArgumentErrorFromJson

func TypeArgumentErrorFromJson(json string) (TypeArgumentError, error)

Create this type from JSON encoded string.