[plt-scheme] which continuation marks when raising new exception?

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Mon Jan 29 07:17:13 EST 2007

--- Robby Findler <robby.findler at gmail.com> wrote:

> I believe the answer is "it depends". Do you want the
> stacktrace from
> the first place or the second place? If the first, use
> (exn-continuation-marks e) and if the second place, use
> (current-continuation-marks).

Robby speaks the truth, but a general rule of thumb is to
do the former.  This preservers the stack trace from the
original exception, which is essential for debugging.

N.

Email: noelwelsh <at> yahoo <dot> com   noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/  http://www.untyped.com/untyping/


 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 


Posted on the users mailing list.