Exception: MTP::UnsupportedProperty

Inherits:
MTPError
  • Object
show all
Defined in:
lib/mtp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, property, message = nil) ⇒ UnsupportedProperty

Returns a new instance of UnsupportedProperty.



87
88
89
90
91
# File 'lib/mtp.rb', line 87

def initialize(object, property, message = nil)
  message = "object #{object} does not support #{property} property" if message.nil?
  super(message)
  @object, @property = object, property
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



86
87
88
# File 'lib/mtp.rb', line 86

def object
  @object
end

#propertyObject (readonly)

Returns the value of attribute property.



86
87
88
# File 'lib/mtp.rb', line 86

def property
  @property
end