This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gekko/exchange/exchangeErrors.js
2021-06-06 20:25:14 +02:00

43 lines
814 B
JavaScript

const _ = require('lodash');
const ExchangeError = function(message) {
_.bindAll(this);
this.name = "ExchangeError";
this.message = message;
}
ExchangeError.prototype = new Error();
const ExchangeAuthenticationError = function(message) {
_.bindAll(this);
this.name = "ExchangeAuthenticationError";
this.message = message;
}
ExchangeAuthenticationError.prototype = new Error();
const RetryError = function(message) {
_.bindAll(this);
this.name = "RetryError";
this.retry = 5;
this.message = message;
}
RetryError.prototype = new Error();
const AbortError = function(message) {
_.bindAll(this);
this.name = "AbortError";
this.message = message;
}
AbortError.prototype = new Error();
module.exports = {
ExchangeError,
ExchangeAuthenticationError,
RetryError,
AbortError
};