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.



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

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

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



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

def detail
  @detail
end