Exception: Textus::TemplateError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

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