class Puppet::Pops::Evaluator::Runtime3Support::ExceptionRaisingAcceptor

An acceptor of diagnostics that immediately raises an exception.

Public Instance Methods

accept(diagnostic) click to toggle source
# File lib/puppet/pops/evaluator/runtime3_support.rb, line 515
def accept(diagnostic)
  super
  Puppet::Pops::IssueReporter.assert_and_report(self, {
    :message => "Evaluation Error:", 
    :emit_warnings => true,  # log warnings
    :exception_class => Puppet::PreformattedError
  })
  if errors?
    raise ArgumentError, "Internal Error: Configuration of runtime error handling wrong: should have raised exception"
  end
end