Exception: DomainRedirects::ParserError

Inherits:
StandardError
  • Object
show all
Defined in:
modules/wmflib/lib/puppet/functions/wmflib/compile_redirects.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg, line_num = nil) ⇒ ParserError

Returns a new instance of ParserError.



363
364
365
366
# File 'modules/wmflib/lib/puppet/functions/wmflib/compile_redirects.rb', line 363

def initialize(msg, line_num = nil)
  @line_num = line_num
  super(msg)
end

Instance Method Details

#to_sObject



368
369
370
# File 'modules/wmflib/lib/puppet/functions/wmflib/compile_redirects.rb', line 368

def to_s
  @line_num.nil? ? super : "[line #{@line_num}]: #{super}"
end