From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA07139; Thu, 6 Nov 2003 09:39:14 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA07299 for ; Thu, 6 Nov 2003 09:39:13 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hA68dB126472 for ; Thu, 6 Nov 2003 09:39:12 +0100 (MET) Received: from [192.168.1.196] (dhcp-196.west.spy.net [192.168.1.196]) by bob.west.spy.net (Postfix) with ESMTP id 9DE495A16 for ; Thu, 6 Nov 2003 00:38:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-Id: <979ADAF0-1034-11D8-ADB5-000393CFE6B8@spy.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: Caml Mailing List From: Dustin Sallings Subject: [Caml-list] exception handling questions Date: Thu, 6 Nov 2003 00:38:27 -0800 X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ocamlrun:01 toplevel:01 stacks:02 exception:02 exception:02 uncaught:02 stack:02 similarly:03 exceptions:04 seems:05 pattern:06 i'd:06 type:07 i'm:07 report:89 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk One thing that really seems to be missing from exception handling is the ability to print a stack trace from an exception. I realize there's a flag on the ocamlrun to print stacks for uncaught exceptions, but that's not exactly what I'm looking for. I'd like to be able to catch and exception, log it, and continue. Similarly, is there a way to print an exception at least like the toplevel does? I can catch any type of exception with the appropriate pattern, but I don't see how I can report it without expecting it. -- Dustin Sallings ------------------- 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