Exception handling syntax: Difference between revisions

Content deleted Content added
No edit summary
Line 296:
end
end
</pre>
 
===[[JavaScript]]===
<pre>
try {
// Statements in which exceptions might be thrown
} catch(error) {
// Statements that execute in the event of an exception
} finally {
// Statements that execute afterward either way
}
</pre>