Exception: Regexp::Scanner::InvalidBackrefError

Inherits:
ValidationError show all
Defined in:
lib/regexp_parser/scanner/errors/validation_error.rb

Overview

Invalid back reference. Used for name a number refs/calls.

Instance Method Summary collapse

Methods inherited from ValidationError

for, types

Constructor Details

#initialize(what, reason) ⇒ InvalidBackrefError

Returns a new instance of InvalidBackrefError.



45
46
47
# File 'lib/regexp_parser/scanner/errors/validation_error.rb', line 45

def initialize(what, reason)
  super "Invalid back reference #{what}, #{reason}"
end