class ExternalReferenceException

Attributes

formula_text[RW]
full_ast[RW]
ref[RW]
reference_ast[RW]

Public Class Methods

new(reference_ast, full_ast, formula_text) click to toggle source
# File src/rewrite/caching_formula_parser.rb, line 10
def initialize(reference_ast, full_ast, formula_text)
  @reference_ast, @full_ast, @formula_text = reference_ast, full_ast, formula_text
end

Public Instance Methods

message() click to toggle source
# File src/rewrite/caching_formula_parser.rb, line 14
  def message
    <<-END


    Sorry, ExcelToCode can't handle external references

    It found one in #{ref && ref.join("!")}
    The formula was #{formula_text}
    Which was parsed to #{full_ast}
    Which seemed to have an external reference at #{reference_ast}
    Note, the [0], [1], [2] ...  are the way Excel stores the names of the external files.

    Please remove the external reference from the Excel and try again.

    END
  end