<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Catching TaskCanceledException</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Catching TaskCanceledException</description>
  <pubDate>Sat, 11 Apr 2026 21:55:01 -700</pubDate>
  <lastBuildDate>Thu, 21 Feb 2013 07:37:46 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3995</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Catching TaskCanceledException : OK, I get it now:  The Cocktail...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15890#15890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3995<br /><strong>Posted:</strong> 21-Feb-2013 at 7:37am<br /><br />OK, I get it now:<br /><br />The Cocktail BootstrapperBase hooks into Application.UnhandledException so any unhandled exceptions are passed to ErrorHandler.HandleError which checks the type of the exception and ignores it if it is a TaskCanceledException.<br /><br />Works for me.<br /><br />Greg ]]>
   </description>
   <pubDate>Thu, 21 Feb 2013 07:37:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15890#15890</guid>
  </item> 
  <item>
   <title>Catching TaskCanceledException : There is no logic to be executed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15883#15883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3995<br /><strong>Posted:</strong> 20-Feb-2013 at 2:00pm<br /><br />There is no logic to be executed if the user decides to cancel, so what are you going to put in the catch? The TaskCanceledException will bubble up as an unhandled exception and ultimate ignored in the ErrorHandler. If you don't like unhandled exceptions, then you would put a try/catch around it and hand the exception directly to the ErrorHandler, where it will get ignored.&nbsp;]]>
   </description>
   <pubDate>Wed, 20 Feb 2013 14:00:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15883#15883</guid>
  </item> 
  <item>
   <title>Catching TaskCanceledException : Doesn&amp;#039;t the ErrorHandler...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15881#15881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3995<br /><strong>Posted:</strong> 20-Feb-2013 at 12:07pm<br /><br />Doesn't the ErrorHandler catch it?]]>
   </description>
   <pubDate>Wed, 20 Feb 2013 12:07:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15881#15881</guid>
  </item> 
  <item>
   <title>Catching TaskCanceledException : In StaffingResourcePhoneListViewModel,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15880#15880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3995<br /><strong>Posted:</strong> 20-Feb-2013 at 10:34am<br /><br />In StaffingResourcePhoneListViewModel, there is an Add() method which calls:<br /><br />await _dialogManager.ShowDialogAsync(phoneTypeSelector, DialogButtons.OkCancel);<br /><br />Shouldn't this be in a Try-Catch to catch a TaskCanceledException?  It will throw this if the user clicks on cancel in the Phone type dialog.<br /><br />Greg]]>
   </description>
   <pubDate>Wed, 20 Feb 2013 10:34:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3995&amp;PID=15880#15880</guid>
  </item> 
 </channel>
</rss>