Class: Dotenv::Merge::TemplateParseError

Inherits:
ParseError
  • Object
show all
Defined in:
lib/dotenv/merge.rb

Overview

Raised when the template file cannot be parsed.

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 { |error| puts "  #{error.message}" }
end

Method Summary

Methods inherited from ParseError

#initialize

Constructor Details

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