@somnia-chain/markets-sdk / index / InvalidInputError
Class: InvalidInputError
Defined in: packages/sdk/src/errors.ts:87
The call itself was wrong — a bad argument, an unknown symbol, or a method used against the wrong kind of market. Thrown before any network round-trip.
Details
This says the caller is at fault, in contrast to NotConfiguredError (the client is missing a config value) and ContractRevertError (the call was well-formed but the chain rejected it).
Gotchas
Never retry this. The arguments are wrong, so the same call fails the same way forever — fix the input instead of backing off.
Extends
Constructors
Constructor
new InvalidInputError(
message,options?):InvalidInputError
Defined in: packages/sdk/src/errors.ts:104
Creates an invalid-input error with an optional underlying cause.
Details
message: What was wrong with the input.options: Standardcausepassthrough, pluschainIdswhen the fault is a chain choice.
Parameters
message
string
options?
ErrorOptions & object
Returns
InvalidInputError
Overrides
SomniaMarketsError.constructor
Properties
chainIds?
readonlyoptionalchainIds?: readonlynumber[]
Defined in: packages/sdk/src/errors.ts:94
The chain ids of a call that named no chain, or named two chains that do
not agree. Set by exchange.client and exchange.trader on a multi-chain
exchange (the chains it spans) and by createReactivity (the engine's
chain, then the wallet's). Absent on every other input error.