Exception: ViewModel::DeserializationError::InvalidParentEdit

Inherits:
ViewModel::DeserializationError show all
Defined in:
lib/view_model/deserialization_error.rb

Instance Attribute Summary

Attributes inherited from AbstractErrorWithBlame

#nodes

Instance Method Summary collapse

Methods inherited from ViewModel::DeserializationError

#code

Methods inherited from AbstractError

#aggregation?, #causes, #code, #detail, #exception, #status, #title, #to_s, #view

Constructor Details

#initialize(changes, node) ⇒ InvalidParentEdit

Returns a new instance of InvalidParentEdit.



314
315
316
317
# File 'lib/view_model/deserialization_error.rb', line 314

def initialize(changes, node)
  @changes = changes
  super([node])
end

Instance Method Details

#metaObject



321
322
323
# File 'lib/view_model/deserialization_error.rb', line 321

def meta
  super.merge(changes: @changes.to_h)
end