R.Wieser
6/2/2016 2:24:00 PM
Christoph,
> Indeed, I should have written "host environment specific".
.... and even that its doesn't matter in the slightest I'm afraid.
And it would also be even less usefull as a designation, as "host" can be
used for both an OS, a browser and, with a little bit of will, even for a
webpage ...
> > Can I check if a specific error has been thrown, and if so how ?
>
> You can apply the usual comparison operators, typeof, instanceof etc.
I'm sorry, but thats a rather unspecific, and as such unusable reply. :-(
Thanks for trying though.
Regards,
Rudy Wieser
-- Origional message:
Christoph M. Becker <cmbecker69@arcor.de> schreef in berichtnieuws
nipeap$4db$1@solani.org...
....
> > Can I check if a specific error has been thrown, and if so how ?
>
> You can apply the usual comparison operators, typeof, instanceof etc.
> Note that JavaScript allows objects and scalar values to be thrown.
>
> For your concrete case see JJ's response
> (<news:yua8gzzjdwv9$.z2ar9grudtz1$.dlg@40tude.net>).
>
> > As for that constant being rather user-agent specific ? JavaScript
isn't
> > only used in webpages. :-)
>
> Indeed, I should have written "host environment specific".
>
> --
> Christoph M. Becker