caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE: Where did the exception occur?~F
@ 2000-10-31 15:18 Damien Doligez
  0 siblings, 0 replies; only message in thread
From: Damien Doligez @ 2000-10-31 15:18 UTC (permalink / raw)
  To: caml-list

>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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-10-31 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-31 15:18 Where did the exception occur?~F Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).