Re: Uq_engines.Receiver_attn

Gerd Stolpmann <[email protected]> Fri, 21 Aug 2009 15:57:03 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Am Mittwoch, den 19.08.2009, 23:36 +0200 schrieb Guillaume Yziquel:
> Hello.
> 
> I've been playing around with Unixqueue and Uq_engines. When writing a 
> handler with a specific group for some rather specific timeouts, I'm 
> faced with the Uq_engines.Receiver_attn exception coming around.
> 
> As I've been using some receiver uq_engine, this is no surprise.
> 
> However, this exception is not declared in uq_engines.mli...
> 
> That means I cannot pattern-match for this exception since it is unknown 
> to the OCaml compiler, since it's not in the .mli file.
> 
> This is a (mild) pain.

It is assumed that handlers reject unknown events, hence there is no
need to catch Receiver_attn. Or do you have a use case?

Gerd

> 
> All the best,
> 
> Guillaume Yziquel.
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ocamlnet-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel
> 
-- 
------------------------------------------------------------
Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany 
[email protected]          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july