<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Global Error Handling in Flex</title>
	<atom:link href="http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/</link>
	<description>Summa Blog</description>
	<pubDate>Thu, 09 Sep 2010 15:16:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian Gray</title>
		<link>http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/comment-page-1/#comment-2613</link>
		<dc:creator>Brian Gray</dc:creator>
		<pubDate>Wed, 02 Jun 2010 21:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1554#comment-2613</guid>
		<description>Hi Agraj,

Are you able to run the demo to get the desired effect?

It may be an issue with where the errors are originating from. &lt;a href="http://www.asserttrue.com/articles/2006/10/17/no-try-catch-from-eventdispatchers-in-actionscript-3-0" rel="nofollow"&gt;This post&lt;/a&gt; finds that if an error is thrown by an event dispatcher, there is no way to catch it on the initiating thread.  That is why, in my demo, I use this click handler:

&lt;code&gt;click="callLater(throwError)"&lt;/code&gt;

Instead of:

&lt;code&gt;click="throwError()"&lt;/code&gt;

Typically in a large MVC application, this is not an issue, as the handlers are very simple and just dispatch events.  Most frameworks (Mate, Cairngorm, etc.) encourage this pattern.  However there are certainly times where this is not the case and care has to be taken to ensure that the exception code will be in the callLater queue.</description>
		<content:encoded><![CDATA[<p>Hi Agraj,</p>
<p>Are you able to run the demo to get the desired effect?</p>
<p>It may be an issue with where the errors are originating from. <a href="http://www.asserttrue.com/articles/2006/10/17/no-try-catch-from-eventdispatchers-in-actionscript-3-0" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://www.asserttrue.com/articles/2006/10/17/no-try-catch-from-eventdispatchers-in-actionscript-3-0');" rel="nofollow">This post</a> finds that if an error is thrown by an event dispatcher, there is no way to catch it on the initiating thread.  That is why, in my demo, I use this click handler:</p>
<p><code>click="callLater(throwError)"</code></p>
<p>Instead of:</p>
<p><code>click="throwError()"</code></p>
<p>Typically in a large MVC application, this is not an issue, as the handlers are very simple and just dispatch events.  Most frameworks (Mate, Cairngorm, etc.) encourage this pattern.  However there are certainly times where this is not the case and care has to be taken to ensure that the exception code will be in the callLater queue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agraj</title>
		<link>http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/comment-page-1/#comment-2611</link>
		<dc:creator>Agraj</dc:creator>
		<pubDate>Mon, 31 May 2010 11:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1554#comment-2611</guid>
		<description>Hi Brian,

Thanks, I was looking for exactly the same thing.

However, this technique is not working in my project and I have no wild idea why is it so ?

In case of an error, the control never reaches the error handler. :(

Any ideas ?

Regards</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>Thanks, I was looking for exactly the same thing.</p>
<p>However, this technique is not working in my project and I have no wild idea why is it so ?</p>
<p>In case of an error, the control never reaches the error handler. <img src='http://www.summa-tech.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Any ideas ?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Gray</title>
		<link>http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/comment-page-1/#comment-2478</link>
		<dc:creator>Brian Gray</dc:creator>
		<pubDate>Wed, 03 Mar 2010 22:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1554#comment-2478</guid>
		<description>@chandra: Thanks!  Seems like the link is working now.  Let me know if you still have trouble with it.</description>
		<content:encoded><![CDATA[<p>@chandra: Thanks!  Seems like the link is working now.  Let me know if you still have trouble with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandra shekhar</title>
		<link>http://www.summa-tech.com/blog/2010/01/04/global-error-handling-in-flex/comment-page-1/#comment-2394</link>
		<dc:creator>chandra shekhar</dc:creator>
		<pubDate>Sat, 09 Jan 2010 10:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1554#comment-2394</guid>
		<description>Nice article.
"Download the full demo" link not working</description>
		<content:encoded><![CDATA[<p>Nice article.<br />
&#8220;Download the full demo&#8221; link not working</p>
]]></content:encoded>
	</item>
</channel>
</rss>
