Class: Toml::Merge::TemplateParseError

Inherits:
ParseError
  • Object
show all
Defined in:
lib/toml/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.errors.each do |error|
    puts "  #{error.message}"
  end
end

Method Summary

Methods inherited from ParseError

#initialize

Constructor Details

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