Exception: LIBUSB::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/libusb/constants.rb

Overview

Base class of libusb errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, transferred = nil) ⇒ Error



43
44
45
46
# File 'lib/libusb/constants.rb', line 43

def initialize(msg=nil, transferred=nil)
  super(msg)
  @transferred = transferred
end

Instance Attribute Details

#transferredFixnum, String (readonly)

The data already transferred before the exception was raised



41
42
43
# File 'lib/libusb/constants.rb', line 41

def transferred
  @transferred
end