Exception: A2A::Errors::HTTPError
- Inherits:
-
ClientError
- Object
- StandardError
- A2AError
- ClientError
- A2A::Errors::HTTPError
- Defined in:
- lib/a2a/errors.rb
Overview
HTTP-related errors
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from A2AError
Instance Method Summary collapse
-
#initialize(message, status_code: nil, response_body: nil, **options) ⇒ HTTPError
constructor
A new instance of HTTPError.
Methods inherited from A2AError
Constructor Details
#initialize(message, status_code: nil, response_body: nil, **options) ⇒ HTTPError
Returns a new instance of HTTPError.
174 175 176 177 178 |
# File 'lib/a2a/errors.rb', line 174 def initialize(, status_code: nil, response_body: nil, **) super(, **) @status_code = status_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
172 173 174 |
# File 'lib/a2a/errors.rb', line 172 def response_body @response_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
172 173 174 |
# File 'lib/a2a/errors.rb', line 172 def status_code @status_code end |