Class: InvalidMessageValueError
Error thrown when encodeTokenizationMsgFromJson recognized the typeUrl but the wrapper-class constructor threw on the malformed value (missing required fields…
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/fromJson.ts:72
Error thrown when encodeTokenizationMsgFromJson recognized the typeUrl
but the wrapper-class constructor threw on the malformed value (missing
required fields, wrong types, etc.). Wraps the underlying TypeError so
agents and HTTP callers see "/tokenization.MsgX: missing field foo"
instead of a raw Cannot read properties of undefined (reading 'foo')
stack trace.
Extends
Error
Constructors
Constructor
new InvalidMessageValueError(
typeUrl,cause):InvalidMessageValueError
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/fromJson.ts:75
Parameters
typeUrl
string
cause
unknown
Returns
InvalidMessageValueError
Overrides
Error.constructor
Properties
cause
readonlycause:unknown
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/fromJson.ts:74
Overrides
Error.cause
typeUrl
readonlytypeUrl:string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/fromJson.ts:73