Exception: Omega::OmegaError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



11
12
13
# File 'lib/omega/client.rb', line 11

def data
  @data
end

Instance Method Details

#messageObject



17
18
19
# File 'lib/omega/client.rb', line 17

def message
  "#{@data[:errorname]}::#{@data[:errorcode]} >> #{@data[:error]}"
end