UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

21 lines (20 loc) 566 B
export class RetryError extends Error { constructor({ message, reason, errors, }) { super(message); Object.defineProperty(this, "errors", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "reason", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.name = "RetryError"; this.reason = reason; this.errors = errors; } }