Exception: SiteMandala::SiteMandalaError
- Inherits:
-
StandardError
- Object
- StandardError
- SiteMandala::SiteMandalaError
- Defined in:
- lib/sitemandala/sitemandala.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ SiteMandalaError
constructor
A new instance of SiteMandalaError.
Constructor Details
#initialize(data) ⇒ SiteMandalaError
Returns a new instance of SiteMandalaError.
5 6 7 8 9 |
# File 'lib/sitemandala/sitemandala.rb', line 5 def initialize(data) @data = data extra = @data.ResultData ? "\nExtra result data: #{@data.ResultData}" : "" super "The SiteMandala API responded with the following error - #{@data.Code}: #{@data.Message}#{extra}" end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/sitemandala/sitemandala.rb', line 4 def data @data end |