mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
import type { RateLimiter, RateLimiterClient } from './types.ts';
|
|
|
|
export class RateLimitError extends Error {
|
|
constructor(
|
|
readonly limiter: RateLimiter,
|
|
readonly client: RateLimiterClient,
|
|
) {
|
|
super('Rate limit exceeded');
|
|
}
|
|
}
|