| STATEMENT | CODE | DESCRIPTION |
|---|---|---|
| the try statement | TRY{} | Tries to executes a regular code. |
| the catch statement | CATCH() | Catches error exceptions if a regular code contains one. |
| the finally statement | FINALLY{} | Executes a code after try...catch has been tested and executed. |
| the throw statement | THROW |
| ERROR | DESCRIPTION |
|---|---|
| EvalError | Occurs when there is an error in eval() function. |
| InternalError | Occurs in case of internal JavaScript errors. |
| RangeError | Occurs when a value is out of range. |
| ReferenceError | Occurs when a non-existing variable is referenced. |
| SyntaxError | Occurs when there is a syntax error in the code. |
| TypeError | Occurs when a value is of an unexpected type. |
| URIError | Occurs when an invalid URL is used. |
Comments
No comments have been made yet.
Please login to leave a comment. Login now