Exception: Puppet::Pops::SemanticError
- Defined in:
- lib/puppet/pops/semantic_error.rb
Overview
Error that is used to raise an Issue. See Issues.
Instance Attribute Summary collapse
-
#issue ⇒ Object
Returns the value of attribute issue.
-
#options ⇒ Object
Returns the value of attribute options.
-
#semantic ⇒ Object
Returns the value of attribute semantic.
Instance Method Summary collapse
- #file ⇒ Object
-
#initialize(issue, semantic = nil, options = {}) ⇒ SemanticError
constructor
A new instance of SemanticError.
- #line ⇒ Object
- #pos ⇒ Object
Constructor Details
#initialize(issue, semantic = nil, options = {}) ⇒ SemanticError
Returns a new instance of SemanticError.
14 15 16 17 18 |
# File 'lib/puppet/pops/semantic_error.rb', line 14 def initialize(issue, semantic = nil, = {}) @issue = issue @semantic = semantic @options = end |
Instance Attribute Details
#issue ⇒ Object
Returns the value of attribute issue.
6 7 8 |
# File 'lib/puppet/pops/semantic_error.rb', line 6 def issue @issue end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/puppet/pops/semantic_error.rb', line 8 def @options end |
#semantic ⇒ Object
Returns the value of attribute semantic.
7 8 9 |
# File 'lib/puppet/pops/semantic_error.rb', line 7 def semantic @semantic end |
Instance Method Details
#file ⇒ Object
20 21 22 |
# File 'lib/puppet/pops/semantic_error.rb', line 20 def file @options[:file] end |
#line ⇒ Object
24 25 26 |
# File 'lib/puppet/pops/semantic_error.rb', line 24 def line @options[:line] end |
#pos ⇒ Object
28 29 30 |
# File 'lib/puppet/pops/semantic_error.rb', line 28 def pos @options[:pos] end |