UNPKG

rate-limiter-flexible

Version:

Node.js atomic and non-atomic counters, rate limiting tools, protection from DoS and brute-force attacks at scale

11 lines (10 loc) 271 B
module.exports = class RateLimiterSetupError extends Error { constructor(message) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } this.name = 'RateLimiterSetupError'; this.message = message; } };