@dydxfoundation/governance
Version:
dYdX governance smart contracts
18 lines (17 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigError = exports.CustomError = void 0;
/**
* Base class for custom errors.
*/
class CustomError extends Error {
constructor(message) {
super(message);
// Set a more specific name. This will show up in e.g. console.log.
this.name = this.constructor.name;
}
}
exports.CustomError = CustomError;
class ConfigError extends CustomError {
}
exports.ConfigError = ConfigError;