Piotr Caban : jscript: Add error throwing functions.