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.



174
175
176
177
# File 'lib/dm-core.rb', line 174

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

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



172
173
174
# File 'lib/dm-core.rb', line 172

def resource
  @resource
end