Class: Honeycomb::Aws::ApiHandler::XmlError
- Inherits:
-
Aws::Xml::ErrorHandler
- Object
- Aws::Xml::ErrorHandler
- Honeycomb::Aws::ApiHandler::XmlError
- Defined in:
- lib/honeycomb/integrations/aws.rb
Overview
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(context) ⇒ XmlError
constructor
A new instance of XmlError.
Constructor Details
#initialize(context) ⇒ XmlError
Returns a new instance of XmlError.
286 287 288 289 290 |
# File 'lib/honeycomb/integrations/aws.rb', line 286 def initialize(context) body = context.http_response.body_contents @code = error_code(body, context) @message = (body) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
284 285 286 |
# File 'lib/honeycomb/integrations/aws.rb', line 284 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
284 285 286 |
# File 'lib/honeycomb/integrations/aws.rb', line 284 def @message end |