| 5 | import { SessionError, ApiError, FileSystemError, RateLimitError } from '../errors/index.js'; |
| 6 | |
| 7 | export interface ClassifiedError { |
| 8 | category: 'session' | 'api' | 'filesystem' | 'unknown'; |
| 9 | code?: string; |
| 10 | description: string; |
| 11 | isRetryable: boolean; |
| 12 | } |
| 13 | |
| 14 | export class ErrorClassifier { |
| 15 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected