class Puppet::Pops::Evaluator::Runtime3Support::ExceptionRaisingAcceptor
An acceptor of diagnostics that immediately raises an exception.
Public Instance Methods
accept(diagnostic)
click to toggle source
Calls superclass method
Puppet::Pops::Validation::Acceptor#accept
# File lib/puppet/pops/evaluator/runtime3_support.rb 518 def accept(diagnostic) 519 super 520 IssueReporter.assert_and_report(self, { 521 :message => "Evaluation Error:", 522 :emit_warnings => true, # log warnings 523 :exception_class => Puppet::PreformattedError 524 }) 525 if errors? 526 raise ArgumentError, _("Internal Error: Configuration of runtime error handling wrong: should have raised exception") 527 end 528 end