mozilla

Compare Revisions

throw

Change Revisions

Revision 535363:

Revision 535363 by Havvy on

Revision 564509:

Revision 564509 by Dan-Dascalescu on

Title:
throw
throw
Slug:
Web/JavaScript/Reference/Statements/throw
Web/JavaScript/Reference/Statements/throw
Tags:
"JavaScript", "Statement"
"Statement", "JavaScript"
Content:

Revision 535363
Revision 564509
n14      Throws a user-defined exception.n14      Throws a user-defined exception. Execution of the current f
 >unction will stop (the statements after <code>throw</code> won't 
 >be executed), and control will be passed to the first <a href="/e
 >n/JavaScript/Reference/Statements/try...catch"><code>catch</code>
 ></a> block in the call stack. If no <code>catch</code> block exis
 >ts among caller functions, the program will terminate.
t206      <a href="/en/JavaScript/Reference/Statements/try...catch" tt206      <a href="/en/JavaScript/Reference/Statements/try...catch" t
>itle="en/JavaScript/Reference/Statements/try...catch">try...catch>itle="try...catch">try...catch</a>
></a> 

Back to History