Exception: ViewModel::DeserializationError::Internal

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

Overview

There has been an unexpected internal failure of the ViewModel library.

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

Returns a new instance of Internal.



45
46
47
48
# File 'lib/view_model/deserialization_error.rb', line 45

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

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



43
44
45
# File 'lib/view_model/deserialization_error.rb', line 43

def detail
  @detail
end