Exception: Twib::ResultError
Overview
An error originating from either twibd or a remote device.
Instance Attribute Summary collapse
-
#code ⇒ Integer
readonly
The bad result code that caused this error.
Instance Method Summary collapse
-
#initialize(code) ⇒ ResultError
constructor
A new instance of ResultError.
Constructor Details
#initialize(code) ⇒ ResultError
Returns a new instance of ResultError.
14 15 16 17 |
# File 'lib/twib.rb', line 14 def initialize(code) super("0x#{code.to_i.to_s(16)}") @code = code.to_i end |
Instance Attribute Details
#code ⇒ Integer (readonly)
Returns the bad result code that caused this error.
20 21 22 |
# File 'lib/twib.rb', line 20 def code @code end |