
{"id":8358,"date":"2013-04-18T16:53:51","date_gmt":"2013-04-18T16:53:51","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8358"},"modified":"2013-04-18T16:53:51","modified_gmt":"2013-04-18T16:53:51","slug":"errors-and-exceptions","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/04\/18\/errors-and-exceptions\/","title":{"rendered":"Errors and Exceptions"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$gcc error.c\n$cat error.c\n#include\n\nmain()\n{\nint a=0;\nint b=10;\nprintf(\"Hello Alln\");\nprintf(\"%d\",b\/a);\n}\n\n$.\/a.out &gt; outputa\nFloating point exception\n$cat outputa\n$\n$.\/a.out 2&gt; outputa\nHello All\nFloating point exception\n$.\/a.out &gt; outputa\nFloating point exception\n$.\/a.out 2&gt; outputb\nHello All\nFloating point exception\n$.\/a.out &amp;&gt; outputc\nFloating point exception\n$cat outputa\n$\n$cat outputb\n$cat outputc\n$\n\n<\/pre>\n<p>An Error &#8220;indicates serious problems that a reasonable application should not try to catch.<\/p>\n<p>An Exception &#8220;indicates conditions that a reasonable application might want to catch.<\/p>\n<p>source : http:\/\/stackoverflow.com\/questions\/5813614\/what-is-difference-between-errors-and-exceptions<\/p>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $gcc error.c $cat error.c #include main() { int a=0; int b=10; printf(&#8220;Hello Alln&#8221;); printf(&#8220;%d&#8221;,b\/a); } $.\/a.out &gt; outputa Floating point exception $cat outputa $ $.\/a.out 2&gt; outputa Hello All Floating point exception $.\/a.out &gt; outputa Floating point exception $.\/a.out 2&gt; outputb Hello All Floating point exception $.\/a.out &amp;&gt; outputc Floating point exception $cat &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/04\/18\/errors-and-exceptions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Errors and Exceptions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8358"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8358"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8358\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}