<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unibon</author_name>
  <author_url>https://blog.hatena.ne.jp/unibon/</author_url>
  <blog_title>unibonの日記</blog_title>
  <blog_url>https://unibon.hatenadiary.org/</blog_url>
  <categories>
    <anon>コンピューター</anon>
  </categories>
  <description>昔から、バカに刃物、アホに例外、と言うように、例外は使いこなすのにコツが要る。 どういうときに例外を使い(例外を投げるメソッドを実装し)、どういうときに戻り値で返すべきか。原則として、例外は、起こったことだけを検知したい場合に使うほうが良い。例外が起こった原因を絶対に知りたいときに例外を使うのは間違っている。 たとえば、Java の IOException を考えてみる。通常、これはいつ起きるか分からない。なぜなら、入出力に絡んだネイティブな部分で起きるものだからいつ起きるか分からない。かといって、ストリーム系のクラスには read/write 等、たくさんのメソッドがあるので、これらのメソッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funibon.hatenadiary.org%2Fentry%2F20070127%2Fp4&quot; title=&quot;例外(Exception)についてのメモ - unibonの日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-01-27 00:00:03</published>
  <title>例外(Exception)についてのメモ</title>
  <type>rich</type>
  <url>https://unibon.hatenadiary.org/entry/20070127/p4</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
