mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* error.c: [DOC] Document Exception#cause by @jasonrclark [ci skip]
[Fixes GH-519] https://github.com/ruby/ruby/pull/519 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
09c3f84566
commit
16220d9abb
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 1 06:30:20 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* error.c: [DOC] Document Exception#cause by @jasonrclark [ci skip]
|
||||
[Fixes GH-519] https://github.com/ruby/ruby/pull/519
|
||||
|
||||
Sat Feb 1 06:10:49 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* lib/securerandom.rb: [DOC] Add note on require for examples
|
||||
|
|
9
error.c
9
error.c
|
@ -804,6 +804,15 @@ rb_exc_set_backtrace(VALUE exc, VALUE bt)
|
|||
return exc_set_backtrace(exc, bt);
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* exception.cause -> an_exception
|
||||
*
|
||||
* Returns the previous exception ($!) at the time this exception was raised.
|
||||
* This is useful for wrapping exceptions and retaining the original exception
|
||||
* information.
|
||||
*/
|
||||
|
||||
VALUE
|
||||
exc_cause(VALUE exc)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue