UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

18 lines 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseError = void 0; /** * Base class for all custom errors. */ class BaseError extends Error { constructor(message, options = {}) { // const { cause, context } = options; const { context } = options; // super(message, { cause }); super(message); this.name = this.constructor.name; this.context = context; } } exports.BaseError = BaseError; //# sourceMappingURL=base.error.js.map