Re: whither stack traces?

Dave Herman <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Vesa Karvonen wrote:

> Did you try General.exnMessage:

John Reppy wrote:

 > The SML'97 basis functions exnName and exnMessage are probably
 > being used for this purpose.

I tried that with the following code:

     fun printStackTrace e =
         let val ss = SMLofNJ.exnHistory e
         in
             print ("uncaught exception " ^ (exnMessage e) ^ "\n");
             app (fn s => print ("\t" ^ s ^ "\n")) ss
         end

and got this output:

uncaught exception Match (more info unavailable: ExnInfoHook not 
initialized)
         main.sml:6.46

I had no luck finding information about ExnInfoHook. Google doesn't know 
it. :)

Thanks,
Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.