Exception: MTP::UnsupportedRequest
- Inherits:
-
DeviceError
- Object
- StandardError
- MTPError
- DeviceError
- MTP::UnsupportedRequest
- Defined in:
- lib/mtp.rb
Instance Attribute Summary
Attributes inherited from DeviceError
Instance Method Summary collapse
-
#initialize(device, request, message = nil) ⇒ UnsupportedRequest
constructor
A new instance of UnsupportedRequest.
Constructor Details
#initialize(device, request, message = nil) ⇒ UnsupportedRequest
Returns a new instance of UnsupportedRequest.
78 79 80 81 82 |
# File 'lib/mtp.rb', line 78 def initialize(device, request, = nil) = "device does not support #{request} operation" if .nil? super(device, ) @request = request end |