Exception: DomainRedirects::ParserError
- Defined in:
- modules/wmflib/lib/puppet/functions/wmflib/compile_redirects.rb
Instance Method Summary collapse
-
#initialize(msg, line_num = nil) ⇒ ParserError
constructor
A new instance of ParserError.
- #to_s ⇒ Object
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_s ⇒ Object
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 |