Exception: Textus::TemplateError
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(m, template_name: nil) ⇒ TemplateError
constructor
A new instance of TemplateError.
Methods inherited from Error
Constructor Details
#initialize(m, template_name: nil) ⇒ TemplateError
Returns a new instance of TemplateError.
138 139 140 141 142 |
# File 'lib/textus/errors.rb', line 138 def initialize(m, template_name: nil) hint = ("expected at .textus/templates/#{template_name}; add the file or update the entry's template: field" if template_name) super("template_error", m, hint: hint) end |