Exception: Aws::Templates::Exception::ViewNotFound

Inherits:
RuntimeError
  • Object
show all
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 Method Summary collapse

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

#instanceObject (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

#messageObject



15
16
17
# File 'lib/aws/templates/exception/view_not_found.rb', line 15

def message
  "Can't find any view for #{instance.inspect} of class #{instance.class}"
end