UNPKG

@nosana/kit

Version:

Nosana KIT

20 lines 893 B
export declare class NosanaError extends Error { readonly code: string; readonly details?: unknown | undefined; readonly txSignature?: string | undefined; constructor(message: string, code: string, details?: unknown | undefined, txSignature?: string | undefined); } export declare const ErrorCodes: { readonly INVALID_NETWORK: "INVALID_NETWORK"; readonly INVALID_CONFIG: "INVALID_CONFIG"; readonly RPC_ERROR: "RPC_ERROR"; readonly TRANSACTION_ERROR: "TRANSACTION_ERROR"; readonly PROGRAM_ERROR: "PROGRAM_ERROR"; readonly VALIDATION_ERROR: "VALIDATION_ERROR"; readonly NO_WALLET: "NO_WALLET"; readonly FILE_ERROR: "FILE_ERROR"; readonly WALLET_CONVERSION_ERROR: "WALLET_CONVERSION_ERROR"; readonly AUTH_ERROR: "AUTH_ERROR"; }; export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes]; //# sourceMappingURL=NosanaError.d.ts.map