Exception: KloutAPI::KloutAPIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/klout_stable.rb

Overview

Represents a Klout API error and contains specific data about the error.

Direct Known Subclasses

BadRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ KloutAPIError

Returns a new instance of KloutAPIError.



35
36
37
38
# File 'lib/klout_stable.rb', line 35

def initialize(data)
  @data = Hashie::Mash.new(data)
  super "The Klout API responded with the following error - #{data}"
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



34
35
36
# File 'lib/klout_stable.rb', line 34

def data
  @data
end