diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2024-03-14 15:50:19 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2024-03-18 08:55:46 +0100 |
commit | 8a8df4917488ff1c8034119a94216f1b04ed3bfc (patch) | |
tree | d274d2a5f6d41d4c62626a925b796df50c24d0a7 /eval.c | |
parent | 454b939d7c9223ca04aa06a79939187ee6f3396c (diff) |
Update set_backtrace documentation
Followup: https://github.com/ruby/ruby/pull/10017
[Feature #13557]
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -761,7 +761,8 @@ rb_f_raise(int argc, VALUE *argv) * object that returns an +Exception+ object when sent an +exception+ * message). The optional second parameter sets the message associated with * the exception (accessible via Exception#message), and the third parameter - * is an array of callback information (accessible via Exception#backtrace). + * is an array of callback information (accessible via + * Exception#backtrace_locations or Exception#backtrace). * The +cause+ of the generated exception (accessible via Exception#cause) * is automatically set to the "current" exception (<code>$!</code>), if any. * An alternative value, either an +Exception+ object or +nil+, can be @@ -771,7 +772,7 @@ rb_f_raise(int argc, VALUE *argv) * <code>begin...end</code> blocks. * * raise "Failed to create socket" - * raise ArgumentError, "No parameters", caller + * raise ArgumentError, "No parameters", caller_locations */ static VALUE |