Class: Keycardai::A2A::InvocationError
- Inherits:
-
Error
- Object
- Error
- Keycardai::A2A::InvocationError
- Defined in:
- lib/keycardai/a2a/errors.rb
Overview
The JSON-RPC invocation returned an HTTP error or a JSON-RPC error response. Carries the JSON-RPC error payload when one was returned.
Instance Attribute Summary collapse
-
#rpc_error ⇒ Hash?
readonly
The JSON-RPC error object, when present.
Instance Method Summary collapse
-
#initialize(message, rpc_error: nil) ⇒ InvocationError
constructor
A new instance of InvocationError.
Constructor Details
#initialize(message, rpc_error: nil) ⇒ InvocationError
Returns a new instance of InvocationError.
15 16 17 18 |
# File 'lib/keycardai/a2a/errors.rb', line 15 def initialize(, rpc_error: nil) super() @rpc_error = rpc_error end |
Instance Attribute Details
#rpc_error ⇒ Hash? (readonly)
Returns the JSON-RPC error object, when present.
13 14 15 |
# File 'lib/keycardai/a2a/errors.rb', line 13 def rpc_error @rpc_error end |