My first guess is: NO. Exception in Java are here to catch ‘expected’ exceptions and handle them within the application. Error in ActionScript 3 are here to handle ‘unexpected’ errors.
Am I right ?
My first guess is: NO. Exception in Java are here to catch ‘expected’ exceptions
Share
Exceptions in ActionScript and Java have the same conception except the following:
Errorclass.try…catch…finallyblock. Prior to Flash Player 10.1 there was no way to handle these exceptions. Flash Player 10.1 added global error handling withflash.events.UncaughtErrorEvent.flash.events.ErrorEventand produce exceptions in case of absence of corresponding event listeners. For example,SWFLoadercan fireioErrorof typeflash.events.IOErrorEventwhich should be handled.All the other things related to errors are similar to Java 🙂