Exception: Omega::OmegaError
- Inherits:
-
StandardError
- Object
- StandardError
- Omega::OmegaError
- Defined in:
- lib/omega/client.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ OmegaError
constructor
A new instance of OmegaError.
- #message ⇒ Object
Constructor Details
#initialize(data) ⇒ OmegaError
Returns a new instance of OmegaError.
13 14 15 |
# File 'lib/omega/client.rb', line 13 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/omega/client.rb', line 11 def data @data end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/omega/client.rb', line 17 def "#{@data[:errorname]}::#{@data[:errorcode]} >> #{@data[:error]}" end |