Exception: LIBUSB::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- LIBUSB::Error
- Defined in:
- lib/libusb/constants.rb
Overview
Base class of libusb errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#transferred ⇒ Fixnum, String
readonly
The data already transferred before the exception was raised.
Instance Method Summary collapse
-
#initialize(msg = nil, transferred = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, transferred = nil) ⇒ Error
Returns a new instance of Error.
50 51 52 53 |
# File 'lib/libusb/constants.rb', line 50 def initialize(msg=nil, transferred=nil) super(msg) @transferred = transferred end |
Instance Attribute Details
#transferred ⇒ Fixnum, String (readonly)
The data already transferred before the exception was raised
48 49 50 |
# File 'lib/libusb/constants.rb', line 48 def transferred @transferred end |