Module: Phidgets::Error
- Defined in:
- lib/phidgets-ffi/error.rb
Class Method Summary collapse
-
.exception_for(error_code) ⇒ String
Returns the error description corresponding to the error code, or raises an error.
Class Method Details
.exception_for(error_code) ⇒ String
Returns the error description corresponding to the error code, or raises an error.
12 13 14 |
# File 'lib/phidgets-ffi/error.rb', line 12 def self.exception_for(error_code) @errors[error_code] end |