From 1dee5e34a3d397eb96db0b6bcc8e9cb9858975d0 Mon Sep 17 00:00:00 2001 From: marcandre Date: Sat, 8 May 2010 04:50:09 +0000 Subject: * error.c: RDoc for subclasses of Exception. [ruby-core:28394] * cont.c: ditto * enumerator.c: ditto * io.c: ditto * math.c: ditto * numeric.c: ditto * proc.c: ditto * re.c: ditto * thread.c: ditto * transcode.c: ditto. Thanks to Run Paint for some of the documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 're.c') diff --git a/re.c b/re.c index 3316da2d72..2789120cd4 100644 --- a/re.c +++ b/re.c @@ -3448,6 +3448,18 @@ re_warn(const char *s) rb_warn("%s", s); } +/* + * Document-class: RegexpError + * + * Raised when given an invalid regexp expression. + * + * Regexp.new("?") + * + * raises the exception: + * + * RegexpError: target of repeat operator is not specified: /?/ + */ + /* * Document-class: Regexp * -- cgit v1.2.3