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.



185
186
187
188
# File 'lib/dm-core.rb', line 185

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

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



183
184
185
# File 'lib/dm-core.rb', line 183

def resource
  @resource
end