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.



331
332
333
334
# File 'lib/view_model/deserialization_error.rb', line 331

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

Instance Method Details

#metaObject



338
339
340
# File 'lib/view_model/deserialization_error.rb', line 338

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