---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/anthropic_messages/error_translation/type-aliases/AnthropicErrorClassification.md
description: The outcome of classifying an SDK error.
---

# Type Alias: AnthropicErrorClassification

```ts
type AnthropicErrorClassification =
  | {
      kind: "abort";
    }
  | {
      kind: "timeout";
    }
  | {
      kind: "context-overflow";
      message: string;
    }
  | {
      kind: "retriable";
      message: string;
      status: number;
    }
  | {
      kind: "fatal";
      message: string;
      status: number;
    };
```

Defined in: [src/batteries/llm/anthropic\_messages/error\_translation.ts:99](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/anthropic_messages/error_translation.ts#L99)

The outcome of classifying an SDK error.
