@foundry-ai/api-errors
Version:
Common errors that can be thrown and caught reliably across services
12 lines (11 loc) • 438 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const baseError_1 = require("./baseError");
class RateLimitError extends baseError_1.BaseError {
constructor(message = 'Too many requests', status = 429) {
super(message, status, 'rate_limit_error');
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
}
}
exports.RateLimitError = RateLimitError;