UNPKG

@domoinc/ryuu-proxy

Version:

a middleware that provides a proxy for local domo app development

17 lines 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DomoException = void 0; class DomoException extends Error { constructor(err, url) { const message = 'Ensure the app has been published at least once (manifest.json should have an Id) ' + 'and you are working with an active session by running: `domo login`'; super(message); this.error = err.body?.message ?? err.message ?? 'Unknown error'; this.name = 'DomoException'; this.proxy = message; this.statusCode = err.statusCode ?? 500; this.url = url; } } exports.DomoException = DomoException; //# sourceMappingURL=errors.js.map