Exception: Tagstand::TagstandError

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

Overview

Represents a Tagstand 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) ⇒ 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

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end