loader.io.api
Version:
loader.io api wrapper for nodejs. If you interested in this npm package, take a look at the npm package [perst](https://dasred.github.io/perst).
21 lines (15 loc) • 386 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
class Exception extends Error {
/**
*
* @param {string} message
* @param {Error|Response|Object} [data]
*/
constructor(message, data = undefined) {
super(message);
this.data = data;
}
}
module.exports = exports = Exception;
exports['default'] = Exception;