UNPKG

@nosana/kit

Version:

Nosana KIT

19 lines (18 loc) 771 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"; readonly AUTH_ERROR: "AUTH_ERROR"; }; export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];