Exception: Pione::PNML::CompilerError
- Inherits:
-
StandardError
- Object
- StandardError
- Pione::PNML::CompilerError
- Defined in:
- lib/pione/pnml/compiler.rb
Overview
CompilerError represents compiler errors.
Class Method Summary collapse
-
.multiple_constraint_keywords(rule_name) ⇒ Object
Raise an exception for the case multiple constraint keywords found.
-
.should_be_constraint_expr(node) ⇒ Object
Raise an exception for the case of invalid constraint expression.
Class Method Details
.multiple_constraint_keywords(rule_name) ⇒ Object
Raise an exception for the case multiple constraint keywords found.
435 436 437 |
# File 'lib/pione/pnml/compiler.rb', line 435 def self.multiple_constraint_keywords(rule_name) new('Cannot connect multiple constraint nodes with rule "%s".' % rule_name) end |
.should_be_constraint_expr(node) ⇒ Object
Raise an exception for the case of invalid constraint expression.
427 428 429 |
# File 'lib/pione/pnml/compiler.rb', line 427 def self.should_be_constraint_expr(node) new('The node "%s" should be a PIONE expression because of constraint keyword.' % node.name) end |