RegexpError

若未能成功编译正则表达式,则引发该异常。

Regexp.new("*")
=> in `initialize': invalid regular expression; there's no previous \
   pattern, to which '*' would define cardinality at 1: /*/ (RegexpError)

超类: