Exception: MTP::UnsupportedRequest

Inherits:
DeviceError show all
Defined in:
lib/mtp.rb

Instance Attribute Summary

Attributes inherited from DeviceError

#device

Instance Method Summary collapse

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, message = nil)
  message = "device does not support #{request} operation" if message.nil?
  super(device, message)
  @request = request
end