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
12 def initialize(issue, semantic=nil, options = {})
13   @issue = issue
14   @semantic = semantic
15   @options = options
16 end

Public Instance Methods

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