Exception: ViewModel::DeserializationError::InvalidStructure

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

Instance Attribute Summary collapse

Attributes inherited from AbstractErrorWithBlame

#nodes

Instance Method Summary collapse

Methods inherited from ViewModel::DeserializationError

#code

Methods inherited from AbstractErrorWithBlame

#meta

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

#detailObject (readonly)

Returns the value of attribute detail.



52
53
54
# File 'lib/view_model/deserialization_error.rb', line 52

def detail
  @detail
end