W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2013

Re: [Future] reject() value type

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 8 May 2013 10:53:14 -0700
Message-ID: <CADnb78ix++=A1U4cCp1PJ1dTjDwnPEjwujnDU2RypZ_b2HjPLg@mail.gmail.com>
To: Mounir Lamouri <mounir@lamouri.fr>
Cc: "www-dom@w3.org" <www-dom@w3.org>
On Wed, May 8, 2013 at 10:49 AM, Mounir Lamouri <mounir@lamouri.fr> wrote:
> Finally, as David Bruant suggested to me, I think it would be good to
> advertise the error type in the IDL as much as the success type, like
> "Future<Success, Error>", so developers don't have to guess what is
> returned when an error occurs.

This part makes sense for APIs defined by the platform, but for any
other purpose errors should just match whatever you can do with throw

Received on Wednesday, 8 May 2013 17:53:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:02 UTC