Exception: Tagstand::TagstandError
- Inherits:
-
StandardError
- Object
- StandardError
- Tagstand::TagstandError
- Defined in:
- lib/tagstand.rb
Overview
Represents a Tagstand 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) ⇒ TagstandError
constructor
A new instance of TagstandError.
Constructor Details
#initialize(data) ⇒ TagstandError
Returns a new instance of TagstandError.
36 37 38 39 |
# File 'lib/tagstand.rb', line 36 def initialize(data) @data = Hashie::Mash.new(data) super "The Tagstand API responded with the following error - #{data}" end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
35 36 37 |
# File 'lib/tagstand.rb', line 35 def data @data end |