MCPcopy Create free account
hub / github.com/apache/maka / classifyError

Function classifyError

packages/runtime/src/provider-error-classification.ts:575–579  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

573 * rank last so "generate" can never become a rate limit.
574 */
575export function classifyError(error: unknown): string {
576 if (RetryError.isInstance(error) && error.reason === 'abort') return 'Abort';
577 const facts = normalizeProviderError(error);
578 return facts ? classifyProviderFacts(facts) : 'Other';
579}
580
581function classifyProviderFacts(facts: ProviderErrorFacts): string {
582 const { target: classificationTarget, evidence } = facts;

Callers 6

classifyErrorMethod · 0.85
normalizeModelFailureFunction · 0.85
executeToolMethod · 0.85
overflowFunction · 0.85

Calls 2

normalizeProviderErrorFunction · 0.85
classifyProviderFactsFunction · 0.85

Tested by 1

overflowFunction · 0.68