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.
174 175 176 177 |
# File 'lib/dm-core.rb', line 174 def initialize(, resource) super() @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
172 173 174 |
# File 'lib/dm-core.rb', line 172 def resource @resource end |