Exception: Wings::Valkyrie::Persister::FailedSaveError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Wings::Valkyrie::Persister::FailedSaveError
- Defined in:
- lib/wings/valkyrie/persister.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#obj ⇒ Object
Returns the value of attribute obj.
Instance Method Summary collapse
-
#initialize(msg = nil, obj:) ⇒ FailedSaveError
constructor
A new instance of FailedSaveError.
Constructor Details
#initialize(msg = nil, obj:) ⇒ FailedSaveError
Returns a new instance of FailedSaveError.
75 76 77 78 79 |
# File 'lib/wings/valkyrie/persister.rb', line 75 def initialize(msg = nil, obj:) self.obj = obj msg = "Failed to save object {obj}.\n" + msg super(msg) end |
Instance Attribute Details
#obj ⇒ Object
Returns the value of attribute obj.
73 74 75 |
# File 'lib/wings/valkyrie/persister.rb', line 73 def obj @obj end |