UNPKG

rate-limiter-memory

Version:

Node.js rate limiter by key and protection from DDoS and Brute-Force attacks in process Memory, Redis, MongoDb, Memcached, MySQL, PostgreSQL, Cluster or PM

14 lines (13 loc) 317 B
module.exports = class RateLimiterQueueError extends Error { constructor(message, extra) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } this.name = 'CustomError'; this.message = message; if (extra) { this.extra = extra; } } };