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 KAA05975; Tue, 21 Jan 2003 10:32:11 +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 KAA06113 for ; Tue, 21 Jan 2003 10:32:08 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0L9W7r29667 for ; Tue, 21 Jan 2003 10:32:07 +0100 (MET) Received: from fichte.ai.univie.ac.at (markus@localhost [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) with ESMTP id h0L9W7SX020247; Tue, 21 Jan 2003 10:32:07 +0100 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) id h0L9W6XN020246; Tue, 21 Jan 2003 10:32:06 +0100 Date: Tue, 21 Jan 2003 10:32:06 +0100 From: Markus Mottl To: Hans Ole Rafaelsen Cc: caml-list@inria.fr Subject: Re: [Caml-list] String of '_' (any) exception? Message-ID: <20030121093206.GA19987@fichte.ai.univie.ac.at> Mail-Followup-To: Hans Ole Rafaelsen , caml-list@inria.fr References: <3azsmvn7xij.fsf@itherther.simula.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3azsmvn7xij.fsf@itherther.simula.no> User-Agent: Mutt/1.4i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 21 Jan 2003, Hans Ole Rafaelsen wrote: > does it exist a way to get hold of a the string (if any) associated > with an exception, when the exception has been caught with the "_" > (any) exception? What I am interested in is to get hold of the > information which the run-time normally prints when it exits. Just take a look at the "to_string"-function in the "Printexc"-module of the standard library: it implements what you need. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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