Files

14 lines
317 B
JavaScript
Raw Permalink Normal View History

2025-12-25 11:16:59 +01:00
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;
}
}
};