Handling Errors with try/catch

Server-Side ActionScript contains the
try/catch/finally
construct of
ECMAScript. If you have used JavaScript, Java, or ColdFusion before,
you may be familiar with this construct, which is missing from
client-side ActionScript. You use it like this:

Tip

A
try/catch/finally
construct says, “Try to execute the code inside the
try block. If there is an error
(exception), execute the code in the
catch block. In either case, execute the code in
the finally block.”