Exception: Prism::Merge::TemplateParseError

Inherits:
ParseError show all
Defined in:
lib/prism/merge.rb

Overview

Raised when the template file has syntax errors.

Examples:

Handling template parse errors

begin
  merger = SmartMerger.new(template, destination)
  result = merger.merge
rescue TemplateParseError => e
  puts "Template syntax error: #{e.message}"
  e.parse_result.errors.each do |error|
    puts "  #{error.message}"
  end
end

Instance Attribute Summary

Attributes inherited from ParseError

#content, #parse_result

Method Summary

Methods inherited from ParseError

#initialize

Constructor Details

This class inherits a constructor from Prism::Merge::ParseError