{"id":19,"date":"2004-06-05T17:16:10","date_gmt":"2004-06-05T07:16:10","guid":{"rendered":"http:\/\/www.thunderguy.com\/plusplus\/20050421\/19\/"},"modified":"2005-04-22T10:10:18","modified_gmt":"2005-04-22T00:10:18","slug":"a-runtimeexception-is-a-programming-error","status":"publish","type":"post","link":"https:\/\/thunderguy.com\/semicolon\/2004\/06\/05\/a-runtimeexception-is-a-programming-error\/","title":{"rendered":"A RuntimeException is a programming error"},"content":{"rendered":"<p>No function should ever throw a RuntimeException by design, unless it has documented requirements for its arguments or object state that are not fulfilled. Essentially, it must always be possible for the caller of a function to do enough checking so that it can be sure no RuntimeException will be thrown.<\/p>\n<p>This is necessary because RuntimeExceptions indicate programming errors. They don\u00e2\u20ac\u2122t convey much information to the caller, so it\u00e2\u20ac\u2122s never useful to catch them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No function should ever throw a RuntimeException by design, unless it has documented requirements for its arguments or object state that are not fulfilled. Essentially, it must always be possible for the caller of a function to do enough checking so that it can be sure no RuntimeException will be thrown. This is necessary because [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[4],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","tag-java"],"_links":{"self":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}