@bluefin-exchange/bluefin-v2-client
Version:
The Bluefin client Library allows traders to sign, create, retrieve and listen to orders on Bluefin Exchange.
16 lines • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomError = void 0;
const constants_1 = require("../constants");
class CustomError extends Error {
constructor(error, code, extra) {
super();
this.error = error;
this.code = code || constants_1.Errors.UNKNOWN;
this.extra = extra || {};
Error.captureStackTrace(this, this.constructor); // Captures the stack trace
}
}
exports.CustomError = CustomError;
exports.default = CustomError;
//# sourceMappingURL=index.js.map