@nosana/kit
Version:
Nosana KIT
21 lines • 650 B
JavaScript
export class NosanaError extends Error {
constructor(message, code, details) {
super(message);
this.code = code;
this.details = details;
this.name = 'NosanaError';
}
}
export const ErrorCodes = {
INVALID_NETWORK: 'INVALID_NETWORK',
INVALID_CONFIG: 'INVALID_CONFIG',
RPC_ERROR: 'RPC_ERROR',
TRANSACTION_ERROR: 'TRANSACTION_ERROR',
PROGRAM_ERROR: 'PROGRAM_ERROR',
VALIDATION_ERROR: 'VALIDATION_ERROR',
NO_WALLET: 'NO_WALLET',
FILE_ERROR: 'FILE_ERROR',
WALLET_CONVERSION_ERROR: 'WALLET_CONVERSION_ERROR',
AUTH_ERROR: 'AUTH_ERROR',
};
//# sourceMappingURL=NosanaError.js.map