@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / InvalidInputError

Class: InvalidInputError

Defined in: packages/sdk/src/errors.ts:77

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:82

Parameters

message

string

What was wrong with the input.

options?

ErrorOptions

Standard cause passthrough.

Returns

InvalidInputError

Overrides

SomniaMarketsError.constructor