You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
335 B

11 months ago
  1. class AIbitatError extends Error {}
  2. class APIError extends AIbitatError {
  3. constructor(message) {
  4. super(message);
  5. }
  6. }
  7. /**
  8. * The error when the AI provider returns an error that should be treated as something
  9. * that should be retried.
  10. */
  11. class RetryError extends APIError {}
  12. module.exports = {
  13. APIError,
  14. RetryError,
  15. };