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.



20
21
22
# File 'lib/omega/client.rb', line 20

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

Instance Method Details

#errorcodeObject



32
33
34
# File 'lib/omega/client.rb', line 32

def errorcode
  @data[:errorcode]
end

#errornameObject



28
29
30
# File 'lib/omega/client.rb', line 28

def errorname
  @data[:errorname]
end

#messageObject



24
25
26
# File 'lib/omega/client.rb', line 24

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