Exception: Yoker::TemplateError

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

Overview

Raised when template is missing or invalid

Instance Method Summary collapse

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)
  message = "Template error for '#{template_path}'"
  message += ": #{reason}" if reason
  super(message)
end