Skip to content

Error.ts

Added in v0.4.0

Signature

export declare const SystemErrorReason: Schema.Literal<
["DynamicImport", "ReadContract", "InvalidData", "SimulateCalls", "Crypto"]
>

Added in v0.4.0

Signature

export type SystemErrorReason = typeof SystemErrorReason.Type

Added in v0.4.0

Signature

export declare class BadArgument

Added in v0.4.0

Signature

readonly [TypeId]: typeof TypeId

Added in v0.4.0

Signature

export declare const Module: Schema.Literal<
["EvmWalletClient", "EvmPublicClient", "PaymentClient", "Prover", "Attestor", "IbcCoreRegistry"]
>

Added in v0.4.0

Signature

export declare const SdkError: Schema.Union<[typeof BadArgument, typeof SystemError]>

Added in v0.4.0

Signature

export type SdkError = BadArgument | SystemError

Added in v0.4.0

Signature

export declare const TypeIdError: <const TypeId extends symbol, const Tag extends string>(
typeId: TypeId,
tag: Tag
) => new <A extends Record<string, any>>(
args: Simplify<A>
) => Cause.YieldableError & Record<TypeId, TypeId> & { readonly _tag: Tag } & Readonly<A>

Added in v0.4.0

Signature

export declare class SystemError

Added in v0.4.0

Signature

readonly [TypeId]: typeof TypeId

Added in v0.4.0

Signature

export declare const isSdkError: (u: unknown) => u is SdkError

Added in v0.4.0

Signature

export declare const TypeId: typeof TypeId

Added in v0.4.0

Signature

export type TypeId = typeof TypeId

Added in v0.4.0