English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Exceptions and at_exit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-06-04 (21:01)
From: David Fox <david@l...>
Subject: [Caml-list] Exceptions and at_exit
I have some at_exit functions that must execute before my program
exits, but I also want to see a traceback of any exception that
occurs.  Can I catch the exception, print a traceback like the one you
get when you exit and then call exit?  Or can I catch the exception,
execute the at_exit functions, and then re-raise the exception?  How
*do* you re-raise an exception, anyway?  Do you just catch the
exception and raise it?
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners