From: Damien Doligez <Damien.Doligez@inria.fr>
To: caml-list@inria.fr
Subject: RE: Where did the exception occur?~F
Date: Tue, 31 Oct 2000 16:18:22 +0100 (MET) [thread overview]
Message-ID: <200010311518.QAA0000030700@beaune.inria.fr> (raw)
>From: "Mattias Waldau" <mattias.waldau@tacton.se>
>Of cource, I could catch each of these at their location, and raise a
>specific exception for each.
>This, however, would mess up the code.
No need for a specific expression, just use "assert false":
try Hashtbl.find foo bar
with Not_found -> assert false
and it will report the exact location of the problem.
-- Damien
reply other threads:[~2000-10-31 16:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200010311518.QAA0000030700@beaune.inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox