Exception: A2A::Errors::ServerError
- Defined in:
- lib/a2a/errors.rb
Overview
Server-side errors
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from A2AError
Instance Method Summary collapse
-
#initialize(error = nil, message: nil) ⇒ ServerError
constructor
A new instance of ServerError.
Methods inherited from A2AError
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( || error&. || "Server error") end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
195 196 197 |
# File 'lib/a2a/errors.rb', line 195 def error @error end |