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.
77 78 79 80 81 82 |
# File 'lib/wings/valkyrie/persister.rb', line 77 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.
75 76 77 |
# File 'lib/wings/valkyrie/persister.rb', line 75 def obj @obj end |