UNPKG

@sangaman/xud

Version:
44 lines 1.5 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const errorCodesPrefix_1 = __importDefault(require("../constants/errorCodesPrefix")); const codesPrefix = errorCodesPrefix_1.default.RAIDEN; const errorCodes = { RAIDEN_IS_DISABLED: codesPrefix.concat('.1'), INSUFFICIENT_BALANCE: codesPrefix.concat('.2'), TIMEOUT: codesPrefix.concat('.3'), INVALID: codesPrefix.concat('.4'), SERVER_ERROR: codesPrefix.concat('.5'), UNEXPECTED: codesPrefix.concat('.6'), }; exports.errorCodes = errorCodes; const errors = { RAIDEN_IS_DISABLED: { message: 'raiden is disabled', code: errorCodes.RAIDEN_IS_DISABLED, }, INSUFFICIENT_BALANCE: { message: 'insufficient balance to perform request', code: errorCodes.INSUFFICIENT_BALANCE, }, TIMEOUT: { message: 'request timed out', code: errorCodes.TIMEOUT, }, INVALID: { message: 'request is conflicting or otherwise invalid', code: errorCodes.INVALID, }, SERVER_ERROR: { message: 'raiden server error', code: errorCodes.SERVER_ERROR, }, UNEXPECTED: { message: 'unexpected error during raiden request', code: errorCodes.UNEXPECTED, }, }; exports.default = errors; //# sourceMappingURL=errors.js.map