Exception: ViewModel::DeserializationError::InvalidStructure
- Inherits:
-
InvalidRequest
- Object
- StandardError
- AbstractError
- AbstractErrorWithBlame
- ViewModel::DeserializationError
- InvalidRequest
- ViewModel::DeserializationError::InvalidStructure
- Defined in:
- lib/view_model/deserialization_error.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
Attributes inherited from AbstractErrorWithBlame
Instance Method Summary collapse
-
#initialize(detail, nodes = []) ⇒ InvalidStructure
constructor
A new instance of InvalidStructure.
Methods inherited from ViewModel::DeserializationError
Methods inherited from AbstractErrorWithBlame
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #meta, #status, #title, #to_s, #view
Constructor Details
#initialize(detail, nodes = []) ⇒ InvalidStructure
Returns a new instance of InvalidStructure.
54 55 56 57 |
# File 'lib/view_model/deserialization_error.rb', line 54 def initialize(detail, nodes = []) @detail = detail super(nodes) end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
52 53 54 |
# File 'lib/view_model/deserialization_error.rb', line 52 def detail @detail end |