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.



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

#objObject

Returns the value of attribute obj.



75
76
77
# File 'lib/wings/valkyrie/persister.rb', line 75

def obj
  @obj
end