{"id":1252,"date":"2012-11-20T16:40:58","date_gmt":"2012-11-20T15:40:58","guid":{"rendered":"http:\/\/www.dotmana.com\/weblog\/?p=1252"},"modified":"2012-11-20T16:43:04","modified_gmt":"2012-11-20T15:43:04","slug":"try-catch","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2012\/11\/try-catch\/","title":{"rendered":"Try &#8230; Catch &#8230;"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" style=\"max-width: 800px;\" src=\"http:\/\/realityloop.net\/blog\/KnowYourLanguageTryCatchFuninC_EFEF\/image_3.png\" alt=\"\" width=\"114\" height=\"99\" \/><\/p>\n<p>\u00c7a y est, j&#8217;ai trouv\u00e9 le fumier de ma journ\u00e9e.<\/p>\n<p>Quel est le bisounours qui a cod\u00e9 \u00e7a dans Prestashop dans la classe MailCore ?<\/p>\n<blockquote><p>try {<br \/>\n&#8230;<br \/>\n&lt;100 lignes de code&gt;<br \/>\n&#8230;<br \/>\n}<br \/>\ncatch (Swift_Exception $e) {<br \/>\nreturn false;<br \/>\n}<\/p><\/blockquote>\n<p>Evidemment, il y avait une exception lev\u00e9e et je ne voyais rien. 1h30 de recherche parce que ce lapin de 2 semaines a eu la flemme de remonter proprement l&#8217;erreur ! Chiasse !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00c7a y est, j&#8217;ai trouv\u00e9 le fumier de ma journ\u00e9e. Quel est le bisounours qui a cod\u00e9 \u00e7a dans Prestashop dans la classe MailCore ? try { &#8230; &lt;100 lignes de code&gt; &#8230; } catch (Swift_Exception $e) { return false; &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2012\/11\/try-catch\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5],"tags":[],"class_list":["post-1252","post","type-post","status-publish","format-standard","hentry","category-dev","category-humeur"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/1252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=1252"}],"version-history":[{"count":9,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/1252\/revisions"}],"predecessor-version":[{"id":1261,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/1252\/revisions\/1261"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}