Exception: Yoker::TemplateError
- Defined in:
- lib/yoker/errors.rb
Overview
Raised when template is missing or invalid
Instance Method Summary collapse
-
#initialize(template_path, reason = nil) ⇒ TemplateError
constructor
A new instance of TemplateError.
Constructor Details
#initialize(template_path, reason = nil) ⇒ TemplateError
Returns a new instance of TemplateError.
88 89 90 91 92 |
# File 'lib/yoker/errors.rb', line 88 def initialize(template_path, reason = nil) = "Template error for '#{template_path}'" += ": #{reason}" if reason super() end |