First commit
This commit is contained in:
13
framework/node_modules/node-rate-limiter-flexible/lib/component/RateLimiterQueueError.js
generated
vendored
Normal file
13
framework/node_modules/node-rate-limiter-flexible/lib/component/RateLimiterQueueError.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user