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 KAA08229; Thu, 6 Nov 2003 10:02:04 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA08410 for ; Thu, 6 Nov 2003 10:02:03 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hA6922120843 for ; Thu, 6 Nov 2003 10:02:02 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AHg1h-0002UG-00 for ; Thu, 06 Nov 2003 09:02:01 +0000 Date: Thu, 6 Nov 2003 09:02:01 +0000 Cc: Caml Mailing List Subject: Re: [Caml-list] exception handling questions Message-ID: <20031106090201.GA9550@redhat.com> References: <979ADAF0-1034-11D8-ADB5-000393CFE6B8@spy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <979ADAF0-1034-11D8-ADB5-000393CFE6B8@spy.net> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlrun:01 freshmeat:01 ltd:98 toplevel:01 nov:01 stacks:02 06,:02 exception:02 exception:02 uncaught:02 stack:02 stack:02 similarly:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Nov 06, 2003 at 12:38:27AM -0800, Dustin Sallings wrote: > > 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. And while we're at it, printing out a full stack trace with function names and parameters. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment "I wish more software used text based configuration files!" -- A Windows NT user, quoted on Slashdot. ------------------- 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