Exception: MTP::InvalidObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, message = nil) ⇒ InvalidObject

Returns a new instance of InvalidObject.



96
97
98
99
100
# File 'lib/mtp.rb', line 96

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



95
96
97
# File 'lib/mtp.rb', line 95

def object
  @object
end