Exception: DataMapper::SaveFailureError
- Inherits:
-
PersistenceError
- Object
- RuntimeError
- PersistenceError
- DataMapper::SaveFailureError
- Defined in:
- lib/dm-core.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(message, resource) ⇒ SaveFailureError
constructor
A new instance of SaveFailureError.
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(, resource) super() @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
183 184 185 |
# File 'lib/dm-core.rb', line 183 def resource @resource end |