Exception: KloutAPI::KloutAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- KloutAPI::KloutAPIError
- Defined in:
- lib/klout_stable.rb
Overview
Represents a Klout API error and contains specific data about the error.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ KloutAPIError
constructor
A new instance of KloutAPIError.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
34 35 36 |
# File 'lib/klout_stable.rb', line 34 def data @data end |