Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Exception-Handling in JavaScript

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: Tue, Nov 03, 2009, 8:00 AM


The following JavaScript code demonstrates a simple exception handler.

{copytext|div1}
try
{
    // Your code goes here
}
catch (ex)
{
    alert('Error: ' + ex.name + ' - ' + ex.message);
}

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.