Method: Puppet::Pops::SemanticError#initialize

Defined in:
lib/puppet/pops/semantic_error.rb

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

Returns a new instance of SemanticError.

Parameters:

  • issue (Puppet::Pops::Issues::Issue)

    the issue describing the severity and message

  • semantic (Puppet::Pops::Model::Locatable, nil) (defaults to: nil)

    the expression causing the failure, or nil if unknown

  • options (Hash) (defaults to: {})

    an options hash with Symbol to value mapping - these are the arguments to the issue



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