UNPKG

@nosana/kit

Version:

Nosana KIT

18 lines (17 loc) 730 B
export declare class NosanaError extends Error { readonly code: string; readonly details?: unknown | undefined; constructor(message: string, code: string, details?: unknown | 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"; }; export type ErrorCode = typeof ErrorCodes[keyof typeof ErrorCodes];