Exception: ViewModel::DeserializationError::NotFound

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

Overview

Attempted to load persisted viewmodels by id, but they were not available

Instance Attribute Summary

Attributes inherited from AbstractErrorWithBlame

#nodes

Instance Method Summary collapse

Methods inherited from ViewModel::DeserializationError

#code

Methods inherited from AbstractErrorWithBlame

#initialize, #meta

Methods inherited from AbstractError

#aggregation?, #causes, #code, #exception, #initialize, #meta, #status, #title, #to_s, #view

Constructor Details

This class inherits a constructor from ViewModel::AbstractErrorWithBlame

Instance Method Details

#detailObject



187
188
189
190
# File 'lib/view_model/deserialization_error.rb', line 187

def detail
  model_ids = nodes.map(&:model_id)
  "Couldn't find #{viewmodel_class.view_name}(s) with id(s)=#{model_ids.inspect}"
end