Exception: ViewModel::DeserializationError::InvalidSharedReference
- Inherits:
-
InvalidRequest
- Object
- StandardError
- AbstractError
- AbstractErrorWithBlame
- ViewModel::DeserializationError
- InvalidRequest
- ViewModel::DeserializationError::InvalidSharedReference
- Defined in:
- lib/view_model/deserialization_error.rb
Overview
A view included a invalid shared reference
Instance Attribute Summary collapse
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
Attributes inherited from AbstractErrorWithBlame
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(reference, node) ⇒ InvalidSharedReference
constructor
A new instance of InvalidSharedReference.
- #meta ⇒ Object
Methods inherited from ViewModel::DeserializationError
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #status, #title, #to_s, #view
Constructor Details
#initialize(reference, node) ⇒ InvalidSharedReference
Returns a new instance of InvalidSharedReference.
73 74 75 76 |
# File 'lib/view_model/deserialization_error.rb', line 73 def initialize(reference, node) @reference = reference super([node]) end |
Instance Attribute Details
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
71 72 73 |
# File 'lib/view_model/deserialization_error.rb', line 71 def reference @reference end |
Instance Method Details
#detail ⇒ Object
78 79 80 |
# File 'lib/view_model/deserialization_error.rb', line 78 def detail "Could not find shared reference with key '#{reference}'" end |
#meta ⇒ Object
82 83 84 |
# File 'lib/view_model/deserialization_error.rb', line 82 def super.merge(reference: reference) end |