Exception: ClaudeAgentSDK::MessageParseError
- Inherits:
-
ClaudeSDKError
- Object
- StandardError
- ClaudeSDKError
- ClaudeAgentSDK::MessageParseError
- Defined in:
- lib/claude_agent_sdk/errors.rb
Overview
Raised when unable to parse a message from CLI output
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, data: nil) ⇒ MessageParseError
constructor
A new instance of MessageParseError.
Constructor Details
#initialize(message, data: nil) ⇒ MessageParseError
Returns a new instance of MessageParseError.
48 49 50 51 |
# File 'lib/claude_agent_sdk/errors.rb', line 48 def initialize(, data: nil) @data = data super() end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
46 47 48 |
# File 'lib/claude_agent_sdk/errors.rb', line 46 def data @data end |