Exception: Ftdi::StatusCodeError
Overview
Represents error of libftdi with its status code.
Instance Attribute Summary (collapse)
-
- (Fixnum) status_code
readonly
Gets status code.
Instance Method Summary (collapse)
-
- (StatusCodeError) initialize(status_code, message)
constructor
A new instance of StatusCodeError.
-
- (String) to_s
Gets string representation of the error.
Constructor Details
- (StatusCodeError) initialize(status_code, message)
A new instance of StatusCodeError
65 66 67 68 |
# File 'lib/ftdi.rb', line 65 def initialize(status_code, ) super() @status_code = status_code end |
Instance Attribute Details
- (Fixnum) status_code (readonly)
Gets status code.
63 64 65 |
# File 'lib/ftdi.rb', line 63 def status_code @status_code end |
Instance Method Details
- (String) to_s
Gets string representation of the error.
72 73 74 |
# File 'lib/ftdi.rb', line 72 def to_s "#{status_code}: #{super}" end |