Class: Honeycomb::Aws::ApiHandler::XmlError

Inherits:
Aws::Xml::ErrorHandler
  • Object
show all
Defined in:
lib/honeycomb/integrations/aws.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = error_message(body)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



284
285
286
# File 'lib/honeycomb/integrations/aws.rb', line 284

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



284
285
286
# File 'lib/honeycomb/integrations/aws.rb', line 284

def message
  @message
end