Exception: Wings::Valkyrie::Persister::FailedSaveError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/wings/valkyrie/persister.rb

Direct Known Subclasses

MissingOrUnsavedFileError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objObject

Returns the value of attribute obj.



73
74
75
# File 'lib/wings/valkyrie/persister.rb', line 73

def obj
  @obj
end