Exception: DataMapper::SaveFailureError

Inherits:
PersistenceError show all
Defined in:
lib/dm-core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, resource) ⇒ SaveFailureError

Returns a new instance of SaveFailureError



192
193
194
195
# File 'lib/dm-core.rb', line 192

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

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource



190
191
192
# File 'lib/dm-core.rb', line 190

def resource
  @resource
end