<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Traps vs Try/Catch</title><link>http://blogs.msdn.com/b/powershell/archive/2009/06/17/traps-vs-try-catch.aspx</link><description>Someone as asking about Traps vs Try/Catch and Jason Shirk (PowerShell developer) gave a nice concise and precise answer that I thought I would share with you: Trap: Designed for admins V1 and V2 Introduces a new scope Is &amp;#8220;global&amp;#8221;, meaning</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Traps vs Try/Catch</title><link>http://blogs.msdn.com/b/powershell/archive/2009/06/17/traps-vs-try-catch.aspx#10346716</link><pubDate>Wed, 05 Sep 2012 21:05:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10346716</guid><dc:creator>kb0</dc:creator><description>&lt;p&gt;Which construct handles errors first? &amp;nbsp;If I throw in a try block, does the catch get the first shot at handling the exception (what I would expect), or does the trap immediately nab it (what I think I&amp;#39;m seeing)?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10346716" width="1" height="1"&gt;</description></item></channel></rss>