@loktin/sdk / index / LoktinError
Class: LoktinError
Defined in: @loktin/sdk/dist/errors.d.ts:8
Base class of every error the SDK throws. Check code to tell them apart.
Extends
Error
Extended by
ContractErrorInvalidInputErrorNetworkErrorPendingErrorSignerRefusedErrorTokenErrorTransactionFailedErrorUnknownContractError
Constructors
Constructor
new LoktinError(
code,message,options?):LoktinError
Defined in: @loktin/sdk/dist/errors.d.ts:11
Parameters
code
message
string
options?
ErrorOptions
Returns
LoktinError
Overrides
Error.constructor
Properties
cause?
optionalcause?:unknown
Defined in: typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Error.cause
code
readonlycode:LoktinErrorCode
Defined in: @loktin/sdk/dist/errors.d.ts:10
message
message:
string
Defined in: typescript/lib/lib.es5.d.ts:1075
Inherited from
Error.message
name
readonlyname:string
Defined in: @loktin/sdk/dist/errors.d.ts:9
Overrides
Error.name
stack?
optionalstack?:string
Defined in: typescript/lib/lib.es5.d.ts:1076
Inherited from
Error.stack