Exception: Regexp::Syntax::UnknownSyntaxNameError

Inherits:
SyntaxError
  • Object
show all
Defined in:
lib/regexp_parser/syntax.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownSyntaxNameError

Returns a new instance of UnknownSyntaxNameError.



12
13
14
# File 'lib/regexp_parser/syntax.rb', line 12

def initialize(name)
  super "Unknown syntax name '#{name}'. Forgot to add it in the case statement?"
end