Expand description
Error types for the Claude Agent SDK
This module provides a comprehensive error handling system with:
- Error categories for classification
- Error codes for machine-readable identification
- Retryable detection for transient errors
- HTTP status code mapping for API responses
Structs§
- CliNot
Found Error - Error when Claude Code CLI cannot be found
- Connection
Error - Error when connecting to Claude Code CLI
- Error
Context - Detailed error context for logging and debugging.
- Image
Validation Error - Image validation error
- Json
Decode Error - Error when JSON decoding fails
- Message
Parse Error - Error when message parsing fails
- Process
Error - Error when the CLI process fails
Enums§
- Claude
Error - Main error type for the Claude Agent SDK
- Error
Category - Error category for classifying errors by their source and nature.
- Http
Status - HTTP status code mapping for errors.
Type Aliases§
- Result
- Result type for the Claude Agent SDK