Class: Puppet::Pops::Evaluator::Runtime3Support::ExceptionRaisingAcceptor Private
- Inherits:
-
Validation::Acceptor
- Object
- Validation::Acceptor
- Puppet::Pops::Evaluator::Runtime3Support::ExceptionRaisingAcceptor
- Defined in:
- lib/puppet/pops/evaluator/runtime3_support.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An acceptor of diagnostics that immediately raises an exception.
Instance Attribute Summary
Attributes inherited from Validation::Acceptor
#diagnostics, #error_count, #warning_count
Instance Method Summary collapse
- #accept(diagnostic) ⇒ Object private
Methods inherited from Validation::Acceptor
#errors, #errors?, #errors_and_warnings, #errors_or_warnings?, #ignored, #initialize, #prune, #warnings, #warnings?
Constructor Details
This class inherits a constructor from Puppet::Pops::Validation::Acceptor
Instance Method Details
#accept(diagnostic) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
562 563 564 565 566 567 568 |
# File 'lib/puppet/pops/evaluator/runtime3_support.rb', line 562 def accept(diagnostic) super Puppet::Pops::IssueReporter.assert_and_report(self, {:message => "Evaluation Error:", :emit_warnings => true }) if errors? raise ArgumentError, "Internal Error: Configuration of runtime error handling wrong: should have raised exception" end end |