{"id":5930,"date":"2012-09-12T16:32:13","date_gmt":"2012-09-12T21:32:13","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=5930"},"modified":"2012-09-12T16:32:15","modified_gmt":"2012-09-12T21:32:15","slug":"exceptions-as-fatal","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/12\/exceptions-as-fatal\/","title":{"rendered":"Exceptions as Fatal"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2012\/09\/10\/10347674.aspx\">Raymond Chen<\/a> (via <a href=\"https:\/\/twitter.com\/optshiftk\/status\/245681730902687744\">Kyle Sluder<\/a>):<\/p>\n<blockquote cite=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2012\/09\/10\/10347674.aspx\"><p>In Win32, exceptions are considered to be horrific situations that usually indicate some sort of fatal error. There may be some select cases where exceptions can be handled, but those are more the unusual cases than the rule. Most of the time, an exception means that something terrible has happened and you&rsquo;re out of luck. The best you can hope for at this point is a controlled crash landing.<\/p><\/blockquote>\n<p>Just like in Cocoa.<\/p>","protected":false},"excerpt":{"rendered":"<p>Raymond Chen (via Kyle Sluder): In Win32, exceptions are considered to be horrific situations that usually indicate some sort of fatal error. There may be some select cases where exceptions can be handled, but those are more the unusual cases than the rule. Most of the time, an exception means that something terrible has happened [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,79,71,80],"class_list":["post-5930","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-exceptions","tag-programming","tag-win32"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=5930"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5930\/revisions"}],"predecessor-version":[{"id":5932,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5930\/revisions\/5932"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=5930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=5930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=5930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}