Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Uncaught exceptions (or am I going crazy?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yaron M. Minsky <yminsky@C...>
Subject: Re: [Caml-list] Uncaught exceptions (or am I going crazy?)
That's it!  Thanks.

y


Tom Hirschowitz wrote:
>>From module Printexc (stdlib):
> 
> let print fct arg =
>   try
>     fct arg
>   with x ->
>     eprintf "Uncaught exception: %s\n" (to_string x);
>     flush stderr;
>     raise x
> 
> let catch fct arg =
>   try
>     fct arg
>   with x ->
>     flush stdout;
>     eprintf "Uncaught exception: %s\n" (to_string x);
>     exit 2
> 
> So maybe one of your libs uses this.
> 
> Yaron M. Minsky writes:
>  > I'm not sure what you mean.  I catch and handle lots of exceptions in my 
>  > code.  But nowhere do I have the text "Uncaught exception".  I can't 
>  > figure out where that text is coming from.
>  > 
>  > y
>  > 
>  > Tom Hirschowitz wrote:
>  > > Probably you could as well look for code catching
>  > > any exception, not especially Sys_errors, right?
>  > > 
>  > >  > code.  It doesn't seem like any of those should be catching Sys_errors.
>  > 
>  > 
>  > 
>  > 



-------------------
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