New error type for cache RL

This commit is contained in:
Ryan Ghadimi
2026-01-16 10:00:15 +00:00
parent 7292b3508f
commit dd1bb93c72
3 changed files with 14 additions and 8 deletions
+7
View File
@@ -70,3 +70,10 @@ export class UsageError extends Error {
return msg.includes('insufficient usage')
}
}
export class RateLimitError extends Error {
constructor(message: string) {
super(message)
this.name = 'RateLimitError'
}
}