Exception: Regexp::Scanner::InvalidGroupOption

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

Overview

Invalid groupOption. Used for inline options. TODO: should become InvalidGroupOptionError in v3.0.0 for consistency

Instance Method Summary collapse

Methods inherited from ValidationError

for, types

Constructor Details

#initialize(option, text) ⇒ InvalidGroupOption

Returns a new instance of InvalidGroupOption.



38
39
40
# File 'lib/regexp_parser/scanner/errors/validation_error.rb', line 38

def initialize(option, text)
  super "Invalid group option #{option} in #{text}"
end