Exception: Terminalwire::V2::ResponseError
- Defined in:
- lib/terminalwire/v2/errors.rb
Overview
Raised on the server side when a response came back with ok: false.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code, message) ⇒ ResponseError
Returns a new instance of ResponseError.
21 22 23 24 |
# File 'lib/terminalwire/v2/errors.rb', line 21 def initialize(code, ) @code = code super("#{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
19 20 21 |
# File 'lib/terminalwire/v2/errors.rb', line 19 def code @code end |