Exception: ZPdf::MissingTemplate

Inherits:
RenderError
  • Object
show all
Defined in:
lib/z_pdf/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(generator_class, view_paths, part_name, templates_path, template_name) ⇒ MissingTemplate

Returns a new instance of MissingTemplate.



20
21
22
23
# File 'lib/z_pdf/base.rb', line 20

def initialize(generator_class,view_paths,part_name,templates_path,template_name)
  paths = view_paths.compact.map{ |p| p.to_s.inspect }.join(", ")
  super("Missing #{part_name} template \"#{template_name}\" in \"#{templates_path}\" for #{generator_class.name} with view_paths: #{paths}")
end