Exception: Pandocomatic::TemplateError
- Inherits:
-
PandocomaticError
- Object
- StandardError
- PandocomaticError
- Pandocomatic::TemplateError
- Defined in:
- lib/pandocomatic/error/template_error.rb
Overview
A TemplateError
Instance Attribute Summary
Attributes inherited from PandocomaticError
Instance Method Summary collapse
-
#initialize(type = :unknown, data = nil) ⇒ TemplateError
constructor
Create a new PandocomaticError.
-
#template ⇒ Object
The template to print this TemplateError.
-
#to_s ⇒ String
Represent this template error as a string.
Methods inherited from PandocomaticError
#data?, #error?, #print, #show
Constructor Details
#initialize(type = :unknown, data = nil) ⇒ TemplateError
Create a new PandocomaticError
31 32 33 |
# File 'lib/pandocomatic/error/template_error.rb', line 31 def initialize(type = :unknown, data = nil) super(type, nil, data) end |
Instance Method Details
#template ⇒ Object
The template to print this TemplateError
44 45 46 |
# File 'lib/pandocomatic/error/template_error.rb', line 44 def template 'template_error.txt' end |
#to_s ⇒ String
Represent this template error as a string.
37 38 39 40 41 |
# File 'lib/pandocomatic/error/template_error.rb', line 37 def to_s "Environment variable '#{@data[:key]}'" \ "#{" in '#{@data[:path]}'" unless @data[:path].nil?} " \ 'does not exist: No substitution possible.' end |