Exception: Aws::Templates::Exception::ViewNotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::Templates::Exception::ViewNotFound
- Defined in:
- lib/aws/templates/exception/view_not_found.rb
Overview
View was not found for the object
View map was checked and there is no appropriate view class for the object class found in the registry.
Instance Attribute Summary collapse
-
#instance ⇒ Object
readonly
Instance of the object class render lookup was performed for.
Instance Method Summary collapse
-
#initialize(target_instance) ⇒ ViewNotFound
constructor
A new instance of ViewNotFound.
- #message ⇒ Object
Constructor Details
#initialize(target_instance) ⇒ ViewNotFound
Returns a new instance of ViewNotFound.
19 20 21 22 |
# File 'lib/aws/templates/exception/view_not_found.rb', line 19 def initialize(target_instance) super() @instance = target_instance end |
Instance Attribute Details
#instance ⇒ Object (readonly)
Instance of the object class render lookup was performed for
13 14 15 |
# File 'lib/aws/templates/exception/view_not_found.rb', line 13 def instance @instance end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/aws/templates/exception/view_not_found.rb', line 15 def "Can't find any view for #{instance.inspect} of class #{instance.class}" end |