Exception: Ast::Merge::DestinationParseError

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

Overview

Raised when the destination file has syntax errors.

Destination files contain user customizations that should be preserved during merges. When a destination cannot be parsed, the merge operation cannot proceed.

Examples:

Handling destination parse errors

begin
  merger = SmartMerger.new(template, destination)
rescue Ast::Merge::DestinationParseError => e
  puts "Destination syntax error: #{e.message}"
  e.errors.each { |error| puts "  #{error.message}" }
end

Instance Attribute Summary

Attributes inherited from ParseError

#content, #errors

Method Summary

Methods inherited from ParseError

#initialize

Constructor Details

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