Exception: ViewModel::DeserializationError::PreviousChildNotFound
- Inherits:
-
NotFound
- Object
- StandardError
- AbstractError
- AbstractErrorWithBlame
- ViewModel::DeserializationError
- NotFound
- ViewModel::DeserializationError::PreviousChildNotFound
- Defined in:
- lib/view_model/deserialization_error.rb
Instance Attribute Summary collapse
-
#association ⇒ Object
readonly
Returns the value of attribute association.
Attributes inherited from AbstractErrorWithBlame
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(association, blame_nodes) ⇒ PreviousChildNotFound
constructor
A new instance of PreviousChildNotFound.
- #meta ⇒ Object
Methods inherited from ViewModel::DeserializationError
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #status, #title, #to_s, #view
Constructor Details
#initialize(association, blame_nodes) ⇒ PreviousChildNotFound
Returns a new instance of PreviousChildNotFound.
217 218 219 220 |
# File 'lib/view_model/deserialization_error.rb', line 217 def initialize(association, blame_nodes) @association = association super(blame_nodes) end |
Instance Attribute Details
#association ⇒ Object (readonly)
Returns the value of attribute association.
215 216 217 |
# File 'lib/view_model/deserialization_error.rb', line 215 def association @association end |
Instance Method Details
#detail ⇒ Object
222 223 224 |
# File 'lib/view_model/deserialization_error.rb', line 222 def detail "No child currently exists to update for association '#{association}'" end |
#meta ⇒ Object
226 227 228 |
# File 'lib/view_model/deserialization_error.rb', line 226 def super.merge(association: association) end |