File size: 335 Bytes
f8b5d42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
class AIbitatError extends Error {}
class APIError extends AIbitatError {
constructor(message) {
super(message);
}
}
/**
* The error when the AI provider returns an error that should be treated as something
* that should be retried.
*/
class RetryError extends APIError {}
module.exports = {
APIError,
RetryError,
};
|