Exception: SuprError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ SuprError

Returns a new instance of SuprError.



125
126
127
128
# File 'lib/supr/client.rb', line 125

def initialize(msg, code)
  @code = code
  super("#{msg} - '#{code}'")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



123
124
125
# File 'lib/supr/client.rb', line 123

def code
  @code
end