Pretty useless, for the reasons you state. Someone threw an exception in a class at work that went unnoticed. It was some function that should have returned false if it couldn't do what it wanted, and in most cases, the return could be ignored. But instead, an exception was thrown. This caused a whole chunk of the application to just fail silently.
I guess if you religiously applied them throughout your app, it could work out, but since there's nothing there to enforce it, it's not very safe. Keith -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of erixtekila Sent: Sunday, August 27, 2006 10:37 AM To: Open Source Flash Mailing List Subject: [osflash] Exceptions in as2 : bad or good Hi list, I feel that the exceptions in as2 is really a weak point. The fact that they are not ckecked, like Java do, make them really usuable iMO. Imagine a case where you throw an exception, but forget to catch it. The case of the exception arrive for some reason. So the program seems to work not as expected, but you got no error, anywhere. So it appears to me that it's more time to debug exceptions handling than to use them. How do you use them. Is comments the only way. Thanks for your advices. ----------- erixtekila http://blog.v-i-a.net/ _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
