Re: [DOMError]: Subclassing DOMError to increase granularity of error handling?

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78jX0T+fHqJopNsgK3y5k3eGDj3RJZ-2OOBJAOk9a+5j7g@mail.gmail.com>
On Thu, Aug 8, 2013 at 12:05 PM, Nilsson, Claes1
<[email protected]> wrote:
> This is not just for debugging. Looking at the example I give in the mail, i.e. when the attempt to create a TCP socket fails I expect the web application to handle each error situation ("no network contact","peer does not respond", "local address/port pair is already in use") differently.

That seems somewhat unlikely to me, especially at such a low level.
Typically when scripts are written the expectation is that it will
work (and it's tested until it does) and maybe have some handling for
when things fall apart, but certainly not wide and varied failure
scenarios.


-- 
http://annevankesteren.nl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.