RateLimitError
RateLimitError
Error thrown by the directive wrapper when a function is rate-limited.
Signature
class RateLimitError extends Error {
public readonly result: RateLimitStoreValue;
constructor(result: RateLimitStoreValue, message?: string)
}
- Extends:
Error
result
property
constructor
method
(result: RateLimitStoreValue, message?: string) => RateLimitErrorCreate a rate-limit error with the stored result payload.