Expand description
Error types for the Claude Code SDK.
This module defines all error types that can occur during SDK operations, including connection failures, process errors, JSON parsing errors, and message parsing errors.
Structs§
- CLIConnection
Error - Error establishing or maintaining a connection to the Claude Code CLI process.
- CLIJSON
Decode Error - Error decoding JSON from the CLI stdout stream.
- CLINot
Found Error - Error when the Claude Code CLI executable cannot be found.
- ClaudeSDK
Error - General SDK error for validation and logic failures.
- Message
Parse Error - Error parsing a JSON message into a typed
Message. - Process
Error - Error from the Claude Code CLI subprocess execution.
Enums§
- Error
- Unified error type for all SDK operations.
Type Aliases§
- Result
- A specialized
Resulttype for SDK operations.