ClaudeAgentSDK.Errors.CLIJSONDecodeError exception (claude_agent_sdk v0.11.0)

Copy Markdown View Source

Raised when the SDK fails to decode JSON output from the CLI.

This usually indicates a protocol mismatch or corrupted output stream.

Fields

  • :message - Human-readable error description
  • :line - The raw line that failed to parse
  • :original_error - The underlying JSON decode error

Summary

Types

t()

@type t() :: %ClaudeAgentSDK.Errors.CLIJSONDecodeError{
  __exception__: true,
  line: String.t(),
  message: String.t(),
  original_error: term()
}