Exception: Puppet::Pops::SemanticError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/puppet/pops/semantic_error.rb

Overview

Error that is used to raise an Issue. See Issues.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issue, semantic = nil, options = {}) ⇒ SemanticError


12
13
14
15
16
# File 'lib/puppet/pops/semantic_error.rb', line 12

def initialize(issue, semantic=nil, options = {})
  @issue = issue
  @semantic = semantic
  @options = options
end

Instance Attribute Details

#issueObject

Returns the value of attribute issue


4
5
6
# File 'lib/puppet/pops/semantic_error.rb', line 4

def issue
  @issue
end

#optionsObject

Returns the value of attribute options


6
7
8
# File 'lib/puppet/pops/semantic_error.rb', line 6

def options
  @options
end

#semanticObject

Returns the value of attribute semantic


5
6
7
# File 'lib/puppet/pops/semantic_error.rb', line 5

def semantic
  @semantic
end

Instance Method Details

#fileObject


18
19
20
# File 'lib/puppet/pops/semantic_error.rb', line 18

def file
  @options[:file]
end

#lineObject


22
23
24
# File 'lib/puppet/pops/semantic_error.rb', line 22

def line
  @options[:line]
end

#posObject


26
27
28
# File 'lib/puppet/pops/semantic_error.rb', line 26

def pos
  @options[:pos]
end