InvalidValueError
Defined in: src/attr/errors.ts:10
A value was rejected by its tagged constructor — out of range, wrong length, bad checksum, too much precision, and so on.
The message names the offending value and, where there is one, the type that would hold it, so the fix is in the error rather than in the docs.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InvalidValueError(
tag,input,reason,hint?):InvalidValueError
Defined in: src/attr/errors.ts:16
Parameters
Section titled “Parameters”"bool" | "i32" | "u64" | "u256" | "dec" | "bytes32" | "bytes" | "str" | "addr" | "key"
unknown
reason
Section titled “reason”string
string
Returns
Section titled “Returns”InvalidValueError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlyinput:unknown
Defined in: src/attr/errors.ts:14
The rejected input, as given.
readonlytag:"bool"|"i32"|"u64"|"u256"|"dec"|"bytes32"|"bytes"|"str"|"addr"|"key"
Defined in: src/attr/errors.ts:12
The type tag whose constructor rejected the value.