Exception: Regexp::Scanner::InvalidSequenceError

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

Overview

Invalid sequence format. Used for escape sequences, mainly.

Instance Method Summary collapse

Methods inherited from ValidationError

for, types

Constructor Details

#initialize(what = 'sequence', where = '') ⇒ InvalidSequenceError

Returns a new instance of InvalidSequenceError.



23
24
25
# File 'lib/regexp_parser/scanner/errors/validation_error.rb', line 23

def initialize(what = 'sequence', where = '')
  super "Invalid #{what} at #{where}"
end