<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doi-t</author_name>
  <author_url>https://blog.hatena.ne.jp/doi-t/</author_url>
  <blog_title>百日半狂乱</blog_title>
  <blog_url>https://doi-t.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
    <anon>エラーハンドリング</anon>
    <anon>例外設計</anon>
    <anon>例外処理</anon>
  </categories>
  <description>二十五日半狂乱、6日目(の分...orz)の記事 Cのエラーハンドリングを毎回やるのは面倒だ！ 前回も言ったが、Cではエラーハンドリングに戻り値とerrnoを用いる． それはそうと例外設計において&quot;無視&quot;は大罪である． だから、関数を呼び出したら戻り値は漏らさずチェックすべきだ． ということで、例えば以下のように逐一戻り値をチェックする． if(send(sockfd, buf, len, 0) &lt; 0){ ERROR(&quot;send&quot;); exit(1); } あぁ、面倒だ． 一体コードのどの部分が正常系の処理なのか？ ほとんどエラーハンドリング*1で埋め尽くされるじゃないか． そもそもエラーハ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoi-t.hatenablog.com%2Fentry%2F2014%2F01%2F18%2F044942&quot; title=&quot;Cのエラーハンドリングと例外設計、例外処理のメモ - 百日半狂乱&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51nXP3TKXVL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-01-18 04:49:42</published>
  <title>Cのエラーハンドリングと例外設計、例外処理のメモ</title>
  <type>rich</type>
  <url>https://doi-t.hatenablog.com/entry/2014/01/18/044942</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
