JavaScript Editor Ajax toolkit     Ajax website 



Main Page

A throw statement is used without an argument outside a catch block. The only place where a throw statement can be used without an argument is within a catch block, in which case it rethrows the error that was caught.

To correct this error

  1. Pass an argument to the throw statement.

  2. Move the throw statement to a catch block.

See Also

Reference

try...catch...finally Statement
throw Statement

Concepts

Troubleshooting Your Scripts

Other Resources

JScript Reference



JavaScript Editor Ajax toolkit     Ajax website


©