class Puppet::Pops::SemanticError

Error that is used to raise an Issue. See {Puppet::Pops::Issues}.

Attributes

issue[RW]
options[RW]
semantic[RW]

Public Class Methods

new(issue, semantic=nil, options = {}) click to toggle source

@param issue [Puppet::Pops::Issues::Issue] the issue describing the severity and message @param semantic [Puppet::Pops::Model::Locatable, nil] the expression causing the failure, or nil if unknown @param options [Hash] an options hash with Symbol to value mapping - these are the arguments to the issue

   # File lib/puppet/pops/semantic_error.rb
13 def initialize(issue, semantic=nil, options = {})
14   @issue = issue
15   @semantic = semantic
16   @options = options
17 end

Public Instance Methods

file() click to toggle source
   # File lib/puppet/pops/semantic_error.rb
19 def file
20   @options[:file]
21 end
line() click to toggle source
   # File lib/puppet/pops/semantic_error.rb
23 def line
24   @options[:line]
25 end
pos() click to toggle source
   # File lib/puppet/pops/semantic_error.rb
27 def pos
28   @options[:pos]
29 end