Exception: Aws::Templates::ViewNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws/templates/exceptions.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.



84
85
86
87
# File 'lib/aws/templates/exceptions.rb', line 84

def initialize(target_instance)
  super()
  @instance = target_instance
end

Instance Attribute Details

#instanceObject (readonly)

Instance of the object class render lookup was performed for



78
79
80
# File 'lib/aws/templates/exceptions.rb', line 78

def instance
  @instance
end

Instance Method Details

#messageObject



80
81
82
# File 'lib/aws/templates/exceptions.rb', line 80

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