caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Michael Lahr <m.lahr@re-entry.de>
To: caml-list@inria.fr
Subject: Matching Unix_error
Date: Thu, 3 Feb 2005 12:17:02 +0100	[thread overview]
Message-ID: <20050203111702.GA31877@re-entry.de> (raw)

Hi,

i'm trying something like this:

let start () = 
    try pipe#run() with
    Unix.Unix_error(_,_,_) -> print_string "matched\n"
    | _ -> print_string "not matched\n"; raise e ;

start();;

where pipe is a http_client's pipeline.

The output is:

not matched
Fatal error: exception Unix.Unix_error(38, "connect", "")

what's wrong here? shouldn't the expression Unix.Unix_error(_,_,_) match
this error?
btw this error occurs only when running under oUnit.
Any clues?

Michael
-- 


             reply	other threads:[~2005-02-03 11:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-03 11:17 Michael Lahr [this message]
2005-02-03 12:40 ` [Caml-list] " Olivier Andrieu
2005-02-03 12:55   ` Michael Lahr

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=20050203111702.GA31877@re-entry.de \
    --to=m.lahr@re-entry.de \
    --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;
as well as URLs for NNTP newsgroup(s).