Exception: A2A::Errors::ServerError

Inherits:
A2AError
  • Object
show all
Defined in:
lib/a2a/errors.rb

Overview

Server-side errors

Instance Attribute Summary collapse

Attributes inherited from A2AError

#code, #data

Instance Method Summary collapse

Methods inherited from A2AError

#to_json_rpc_error

Constructor Details

#initialize(error = nil, message: nil) ⇒ ServerError

Returns a new instance of ServerError.



197
198
199
200
# File 'lib/a2a/errors.rb', line 197

def initialize(error = nil, message: nil)
  @error = error
  super(message || error&.message || "Server error")
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



195
196
197
# File 'lib/a2a/errors.rb', line 195

def error
  @error
end