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.
72 73 74 75 |
# File 'lib/view_model/deserialization_error.rb', line 72 def initialize(reference, node) @reference = reference super([node]) end |
Instance Attribute Details
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
70 71 72 |
# File 'lib/view_model/deserialization_error.rb', line 70 def reference @reference end |
Instance Method Details
#detail ⇒ Object
77 78 79 |
# File 'lib/view_model/deserialization_error.rb', line 77 def detail "Could not find shared reference with key '#{reference}'" end |
#meta ⇒ Object
81 82 83 |
# File 'lib/view_model/deserialization_error.rb', line 81 def super.merge(reference: reference) end |