Exception: Dry::View::TemplateNotFoundError Private
- Inherits:
-
StandardError
- Object
- StandardError
- Dry::View::TemplateNotFoundError
- Defined in:
- lib/dry/view/errors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Error raised when template could not be found within a view’s configured paths
Instance Method Summary collapse
-
#initialize(template_name, lookup_paths) ⇒ TemplateNotFoundError
constructor
private
A new instance of TemplateNotFoundError.
Constructor Details
#initialize(template_name, lookup_paths) ⇒ TemplateNotFoundError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TemplateNotFoundError.
19 20 21 22 23 24 25 26 |
# File 'lib/dry/view/errors.rb', line 19 def initialize(template_name, lookup_paths) msg = [ "Template +#{template_name}+ could not be found in paths:", lookup_paths.map { |path| " - #{path}" } ].join("\n\n") super(msg) end |