Re: [Future] reject() value type
Anne van Kesteren <[email protected]>
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <CADnb78ix++=A1U4cCp1PJ1dTjDwnPEjwujnDU2RypZ_b2HjPLg@mail.gmail.com> |
On Wed, May 8, 2013 at 10:49 AM, Mounir Lamouri <[email protected]> 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 today. -- http://annevankesteren.nl/