I need to make sure I am handling all (my code and SDKs) errors in my Flex application. What's a way of global error management in Flex? Thanks
Here is my code:
in main appication:
creationComplete="globalErrorHandler(event)"
....
protected function globalErrorHandler(event:Event):void
{
systemManager.loaderInfo.uncaughtErrorEvents.addEventListener(Uncaugh tErrorEvent.UNCAUGHT_ERROR, onUncaughtError);
systemManager.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onUncaughtError);
systemManager.loaderInfo.addEventListener(SecurityErrorEvent.SECURITY _ERROR, onUncaughtError);
}
Somewhere at the run time I am generating an unhandled error. I see FP's popup error window and the same error goes into flashlog.txt, but I dont see it getting into onUncaughtError function. What am I doing wrong?
Thanks
I have a very huge codebase following robotlegs framework.
I have regsitered Above Uncaught errors in my Main application file.
I was fortunate enough to get this event working in one of the files but could capture only ONE error out of multiple runtime errors inserted in program.
Any help will be much appreciated.
North America
Europe, Middle East and Africa
Asia Pacific