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 ?
Exceptions in ActionScript and Java have the same conception except the following:
Error class.try…catch…finally block. Prior to Flash Player 10.1 there was no way to handle these exceptions. Flash Player 10.1 added global error handling with flash.events.UncaughtErrorEvent.flash.events.ErrorEvent and produce exceptions in case of absence of corresponding event listeners. For example, SWFLoader can fire ioError of type flash.events.IOErrorEvent which should be handled.All the other things related to errors are similar to Java :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With