summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-19 02:32:39 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-19 02:32:39 +0000
commit62bd3dd4af5ac017a05e250293abe9e5c87a1193 (patch)
tree2e2b2579f5fda50ae9c13e35466c81975583ccd7 /error.c
parent2a4ce0757d691199ea65ca36d59803280ff1b42a (diff)
* error.c (Init_Exception): Add hierarchy of Exception subclasses.
Based on patch by Sylvain Daubert. [Ruby 1.9 - Bug #5438] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/error.c b/error.c
index 8bf33e65ad..f699ea7bdd 100644
--- a/error.c
+++ b/error.c
@@ -1530,6 +1530,38 @@ syserr_eqq(VALUE self, VALUE exc)
* optional traceback information. Programs may subclass
* <code>Exception</code>, or more typically <code>StandardError</code>
* to provide custom classes and add additional information.
+ *
+ * The built-in subclasses of Exception are:
+ *
+ * * NoMemoryError
+ * * ScriptError
+ * * LoadError
+ * * NotImplementedError
+ * * SyntaxError
+ * * SignalException
+ * * Interrupt
+ * * StandardError -- default for +rescue+
+ * * ArgumentError
+ * * IndexError
+ * * StopIteration
+ * * IOError
+ * * EOFError
+ * * LocalJumpError
+ * * NameError
+ * * NoMethodError
+ * * RangeError
+ * * FloatDomainError
+ * * RegexpError
+ * * RuntimeError -- default for +raise+
+ * * SecurityError
+ * * SystemCallError
+ * * Errno::*
+ * * SystemStackError
+ * * ThreadError
+ * * TypeError
+ * * ZeroDivisionError
+ * * SystemExit
+ * * fatal -- impossible to rescue
*/
void