From: Matthew Kerwin Date: 2014-08-06T08:34:44+10:00 Subject: [ruby-core:64212] Re: Asking for clarification for exception handling usage --001a11c1311c4e2f7d04ffe976e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry for replying to myself, but to clarify: On 6 August 2014 08:28, Matthew Kerwin wrote: > > > Passing an exception instance to #raise does the following: > =E2=80=8B=E2=80=8B > =E2=80=8B > > =E2=80=8B > =E2=80=8B > > In the first case the backtrace for both foo and bar lists line 3; in the > second they have line 3 and 5 respectively. > =E2=80=8BThese work by calling #exception on the first parameter (the `foo` object). That's what the documentation means when it says "... when sent an exception message".=E2=80=8B --=20 Matthew Kerwin http://matthew.kerwin.net.au/ --001a11c1311c4e2f7d04ffe976e2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry for replying to myself, but to clarify:


On 6 August= 2014 08:28, Matthew Kerwin <matthew@kerwin.net.au> wrot= e:


Passing an exception instance to #raise does the following:=
=E2=80=8B=E2=80=8B
=E2=80=8B

<snip>=E2=80=8B
=E2=80=8B

In the first case the backtrace f= or both foo and bar lists line 3; in the second they have l= ine 3 and 5 respectively.

=E2=80=8BThese work by ca= lling #exception on the first parameter (the `foo` object). That's what= the documentation means when it says "... when sent an exception mess= age".=E2=80=8B

--
=C2=A0 Matthew Kerwin
=C2= =A0 http://matt= hew.kerwin.net.au/
--001a11c1311c4e2f7d04ffe976e2--