Exception: Textus::TemplateError

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code

Instance Method Summary collapse

Methods inherited from Error

#details, #exit_code, #hint, #to_envelope

Constructor Details

#initialize(m, template_name: nil) ⇒ TemplateError

Returns a new instance of TemplateError.



166
167
168
169
170
# File 'lib/textus/errors.rb', line 166

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