ActionScript Exceptions and Handling
Throwing Exceptions
Handling Exceptions
ActionScript uses try/catch/finally for exception handling.
ActionScript exception handling using try/catch/finally:
// functions do not declare that they throw public function doSomething():void { try { // try something } catch( error:Error ) { // handle error by rethrowing throw error; } finally { // reached whether or not there's an exception } }

