Exception: ViewModel::DeserializationError::UnknownView
- Inherits:
-
InvalidRequest
- Object
- StandardError
- AbstractError
- AbstractErrorWithBlame
- ViewModel::DeserializationError
- InvalidRequest
- ViewModel::DeserializationError::UnknownView
- Defined in:
- lib/view_model/deserialization_error.rb
Overview
A view was of an unknown type
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from AbstractErrorWithBlame
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(type) ⇒ UnknownView
constructor
A new instance of UnknownView.
- #meta ⇒ Object
Methods inherited from ViewModel::DeserializationError
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #status, #title, #to_s, #view
Constructor Details
#initialize(type) ⇒ UnknownView
Returns a new instance of UnknownView.
91 92 93 94 |
# File 'lib/view_model/deserialization_error.rb', line 91 def initialize(type) @type = type super([]) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
89 90 91 |
# File 'lib/view_model/deserialization_error.rb', line 89 def type @type end |
Instance Method Details
#detail ⇒ Object
96 97 98 |
# File 'lib/view_model/deserialization_error.rb', line 96 def detail "ViewModel class for view name '#{type}' could not be found" end |
#meta ⇒ Object
100 101 102 |
# File 'lib/view_model/deserialization_error.rb', line 100 def super.merge(type: type) end |