Class: Rbs::Merge::DestinationParseError

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

Overview

Raised when the destination RBS 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.errors.each { |error| puts "  #{error.message}" }
end

Method Summary

Methods inherited from ParseError

#initialize

Constructor Details

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