Exception: Hanami::View::TemplateNotFoundError
- Defined in:
- lib/hanami/view/errors.rb
Overview
Error raised when template could not be found within a view’s configured paths.
Instance Method Summary collapse
-
#initialize(template_name, format, lookup_paths) ⇒ TemplateNotFoundError
constructor
A new instance of TemplateNotFoundError.
Constructor Details
#initialize(template_name, format, lookup_paths) ⇒ TemplateNotFoundError
Returns a new instance of TemplateNotFoundError.
27 28 29 30 31 32 33 34 |
# File 'lib/hanami/view/errors.rb', line 27 def initialize(template_name, format, lookup_paths) msg = [ "Template `#{template_name}' for format `#{format}' could not be found in paths:", lookup_paths.map { |path| " - #{path}" } ].join("\n\n") super(msg) end |