Exception: SuprError
- Inherits:
-
StandardError
- Object
- StandardError
- SuprError
- Defined in:
- lib/supr/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ SuprError
constructor
A new instance of SuprError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
123 124 125 |
# File 'lib/supr/client.rb', line 123 def code @code end |