{"id":73281,"date":"2015-09-18T00:01:00","date_gmt":"2015-09-18T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2015\/09\/18\/how-to-use-trycatchfinally-for-non-terminating-errors\/"},"modified":"2019-02-18T09:35:12","modified_gmt":"2019-02-18T16:35:12","slug":"how-to-use-trycatchfinally-for-non-terminating-errors","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/how-to-use-trycatchfinally-for-non-terminating-errors\/","title":{"rendered":"How to Use Try\/Catch\/Finally for Non-Terminating Errors"},"content":{"rendered":"<p><b style=\"font-size:12px\">Summary<\/b><span style=\"font-size:12px\">: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell and Try\/Catch\/Finally for non-terminating errors.<\/span><\/p>\n<p>Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video about using Windows PowerShell <b>Try<\/b>\/<b>Catch<\/b>\/<b>Finally<\/b> with non-terminating errors&mdash;that is, Windows PowerShell can progress past the errors when they occur to the next line of code.<\/p>\n<p style=\"margin-left:30px\"><b>Note<\/b>&nbsp; For more information, refer to <a href=\"https:\/\/devblogs.microsoft.com\/scripting\/understanding-non-terminating-errors-in-powershell\/\" target=\"_blank\">Understanding Non-Terminating Errors in PowerShell<\/a>.<\/p>\n<p>Here is the video:&nbsp;<\/p>\n<p>[View:https:\/\/youtu.be\/xhV2EVjivr4:550:0]<\/p>\n<p>Here is a link to the video from YouTube if you would like to download it or play it offline in a different video player:&nbsp; <a href=\"https:\/\/youtu.be\/xhV2EVjivr4\" target=\"_blank\">Non-terminating Errors in Windows PowerShell by Ed Wilson<\/a>.<\/p>\n<p>Join me tomorrow for International <b>Talk Like a Pirate<\/b> day.<\/p>\n<p>I invite you to follow me on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\" target=\"_blank\">Twitter<\/a> and <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\" target=\"_blank\">Facebook<\/a>. If you have any questions, send email to me at <a href=\"mailto:scripter@microsoft.com\" target=\"_blank\">scripter@microsoft.com<\/a>, or post your questions on the <a href=\"http:\/\/bit.ly\/scriptingforum\" target=\"_blank\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p><b>Ed Wilson, Microsoft Scripting Guy<\/b><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell and Try\/Catch\/Finally for non-terminating errors. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video about using Windows PowerShell Try\/Catch\/Finally with non-terminating errors&mdash;that is, Windows PowerShell can progress past the errors when they occur to the next line of code. [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[68,3,4,45],"class_list":["post-73281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-error-handling","tag-scripting-guy","tag-scripting-techniques","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell and Try\/Catch\/Finally for non-terminating errors. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video about using Windows PowerShell Try\/Catch\/Finally with non-terminating errors&mdash;that is, Windows PowerShell can progress past the errors when they occur to the next line of code. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/73281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=73281"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/73281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=73281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=73281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=73281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}