UNPKG

stellar-plus

Version:

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

21 lines (20 loc) 930 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DRHError = exports.DefaultRpcHandlerErrorCodes = void 0; const error_1 = require("../../../stellar-plus/error"); var DefaultRpcHandlerErrorCodes; (function (DefaultRpcHandlerErrorCodes) { // CE0 General DefaultRpcHandlerErrorCodes["DRH001"] = "DRH001"; })(DefaultRpcHandlerErrorCodes || (exports.DefaultRpcHandlerErrorCodes = DefaultRpcHandlerErrorCodes = {})); const missingRpcUrl = () => { return new error_1.StellarPlusError({ code: DefaultRpcHandlerErrorCodes.DRH001, message: 'Missing RPC Url!', source: 'Default RPC Handler', details: 'The Default RPC Handler requires an RPC Url to be defined in the network configuration. Review the network configuration object provided and make sure it has url to connect directly with the RPC server.', }); }; exports.DRHError = { missingRpcUrl, };