<br><br>On Monday, September 3, 2012, Gregory Woodhouse  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dumb question: If an exception is handled by (lambda (e) ... ) is it possible to recover exception details such as any message that may have been used in a raise or related statement?<br>

</blockquote><div><br></div><div>Hi Gregory,</div><div><br></div><div dir="ltr">The value raised by exceptions should be structured; in most cases, the exception value will be an instance of the exn:fail struct.  Take a look at <a href="http://docs.racket-lang.org/reference/exns.html#(part._.Built-in_.Exception_.Types)">http://docs.racket-lang.org/reference/exns.html#(part._.Built-in_.Exception_.Types)</a> for the definition of the exn struct.  The exn-message function, in particular, should let you select out the string message associated to the raised exception.<span></span></div>