W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Catching exceptions

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 2 Apr 2013 10:38:20 +0100
Message-ID: <CADnb78gEzEgak3a=M7_isugPVYjMMCVosrykcQNG1DQ5DL6gVA@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
So reading the ECMAScript specification I cannot find this concept
used there. A number of scenarios require us to catch exceptions and
either handle them or maybe re-throw them as appropriate. Is this
language fine:

1. Invoke /callback/ ...

2. If that threw an exception, ...

Or are there some other things I need to take into account? Is there
preferred language for this kind of pattern?


--
http://annevankesteren.nl/
Received on Tuesday, 2 April 2013 09:38:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:12 UTC