Exception: ViewModel::DeserializationError::InvalidSyntax

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 = []) ⇒ InvalidSyntax

Returns a new instance of InvalidSyntax.



63
64
65
66
# File 'lib/view_model/deserialization_error.rb', line 63

def initialize(detail, nodes = [])
  @detail = detail
  super(nodes)
end

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



61
62
63
# File 'lib/view_model/deserialization_error.rb', line 61

def detail
  @detail
end