On Apr 13, 7:51 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > and "error" handler, QI it to nsIXMLHttpRequest and open an invalid
> > URL
>
> What sort of invalid URL?  Is it an invalid file:// URL, by any chance?

Yes, it's a file:// url with a typo in it.

> > when send(null) is called, an NS_ERROR_FILE_NOT_FOUND exception
> > is thrown.  It is my understanding that send shouldn't throw
> > exceptions for asynchronous connections
>
> send() can always throw an exception (e.g. out of memory).  send() does
> not throw exceptions on network or parse errors except for synchronous
> connections.
>
> -Boris

OK, thanks.  Does this mean that on network 404 (for example), async
send won't throw an exception, but rather call the error handler?

Cheers,

Bruce


_______________________________________________
dev-tech-xpcom mailing list
[EMAIL PROTECTED]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to