Method: Puppet::ExternalFileError#initialize

Defined in:
lib/puppet/error.rb

#initialize(message, file = nil, line = nil, pos = nil, original = nil) ⇒ Object

May be called with 3 arguments for message, file, line, and exception, or 4 args including the position on the line.



20
21
22
23
24
25
26
27
28
29
# File 'lib/puppet/error.rb', line 20

def initialize(message, file=nil, line=nil, pos=nil, original=nil)
  if pos.kind_of? Exception
    original = pos
    pos = nil
  end
  super(message, original)
  @file = file unless (file.is_a?(String) && file.empty?)
  @line = line
  @pos = pos
end