Exception: DomainRedirects::ParserError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg, line_num = nil) ⇒ ParserError

Returns a new instance of ParserError.



380
381
382
383
# File 'modules/mediawiki/lib/puppet/parser/functions/compile_redirects.rb', line 380

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

Instance Method Details

#to_sObject



385
386
387
# File 'modules/mediawiki/lib/puppet/parser/functions/compile_redirects.rb', line 385

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