Exception: ResoTransport::EncodeError

Inherits:
ResourceError show all
Defined in:
lib/reso_transport/errors.rb

Instance Attribute Summary

Attributes inherited from ResourceError

#resource

Instance Method Summary collapse

Methods inherited from ResourceError

#resource_name

Constructor Details

#initialize(resource, property) ⇒ EncodeError

Returns a new instance of EncodeError.



22
23
24
25
# File 'lib/reso_transport/errors.rb', line 22

def initialize(resource, property)
  @property = property
  super resource
end

Instance Method Details

#messageObject



27
28
29
# File 'lib/reso_transport/errors.rb', line 27

def message
  "Property #{@property} not found for #{resource_name}"
end