Exception: Prism::Merge::DestinationParseError

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

Overview

Raised when the destination file has syntax errors.

Examples:

Handling destination parse errors

begin
  merger = SmartMerger.new(template, destination)
  result = merger.merge
rescue DestinationParseError => e
  puts "Destination 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