From: Richard Jones <rich@annexia.org>
To: Virgile Prevosto <virgile.prevosto@m4x.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Printexc cannot print some (but not all) exceptions
Date: Fri, 13 Jan 2006 16:36:29 +0000 [thread overview]
Message-ID: <20060113163627.GB14618@furbychan.cocan.org> (raw)
In-Reply-To: <20060113165436.1e64f458@localhost.localdomain>
On Fri, Jan 13, 2006 at 04:54:36PM +0100, Virgile Prevosto wrote:
> I'd guess that your Http_error is an exception taking one argument which
> happens to be a pair, instead of two arguments (like MyException does).
> Remember that, as with sum types, the two definitions:
Right, well spotted! This is the definition:
exception Http_error of (int * string);;
(* The server sent an error message. The left component of the pair is
* the error code, the right component is the error text.
*)
I'll resort to using Std.dump to find out what's in the exception,
although it would be nice if Printexc could look inside the tuple and
print its contents.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
next prev parent reply other threads:[~2006-01-13 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 15:23 Richard Jones
2006-01-13 15:54 ` [Caml-list] " Virgile Prevosto
2006-01-13 16:36 ` Richard Jones [this message]
2006-01-13 17:23 ` Virgile Prevosto
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=20060113163627.GB14618@furbychan.cocan.org \
--to=rich@annexia.org \
--cc=caml-list@yquem.inria.fr \
--cc=virgile.prevosto@m4x.org \
/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