mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2a4ce0757d
commit
62bd3dd4af
2 changed files with 37 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Oct 19 11:25:46 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* error.c (Init_Exception): Add hierarchy of Exception subclasses.
|
||||||
|
Based on patch by Sylvain Daubert. [Ruby 1.9 - Bug #5438]
|
||||||
|
|
||||||
Wed Oct 19 11:04:47 2011 Eric Hodel <drbrain@segment7.net>
|
Wed Oct 19 11:04:47 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* enum.c: Reformat block args to a single standard, { |args| ... }.
|
* enum.c: Reformat block args to a single standard, { |args| ... }.
|
||||||
|
|
32
error.c
32
error.c
|
@ -1530,6 +1530,38 @@ syserr_eqq(VALUE self, VALUE exc)
|
||||||
* optional traceback information. Programs may subclass
|
* optional traceback information. Programs may subclass
|
||||||
* <code>Exception</code>, or more typically <code>StandardError</code>
|
* <code>Exception</code>, or more typically <code>StandardError</code>
|
||||||
* to provide custom classes and add additional information.
|
* 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
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue