Flash CS3 Documentation |
|||
| Programming ActionScript 3.0 > Handling errors > Error handling in ActionScript 3.0 > Error-handling strategies | |||
As long as your application doesn't encounter a problematic condition, it may still run successfully if you don't build error-handling logic into your code. However, if you don't actively handle errors and your application does encounter a problem, your users will never know why your application fails when it does.
There are different ways you can approach error handling in your application. The following list summarizes the three major options for handling errors:
try..catch..finally statements. These will catch synchronous errors as they occur. You can nest your statements into a hierarchy to catch exceptions at various levels of code execution. For more information, see Using try..catch..finally statements.try..catch..finally statements on your custom error objects. For more information see Creating custom error classes.try..catch..finally blocks. You are also more likely to catch asynchronous errors using this approach. For more information, see Responding to error events and status.Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000100.html