<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>&lt;?php function hoge($a) { if(is_null($a)) { throw new Exception('nullだよそれは!'); return $a; // 通らない } return true; } try { hoge(null); var_dump('ふえええ'); // 例外が発生したら通らない } catch (Exception $e) { var_dump($e-&gt;getMessage()); } 結果 string(20) &quot;nullだよそれは!&quot; 一旦例外処理が発生したらその時点で処理は終了するので、 上のようにreturnしても意味がありません。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20121129%2F1354170339&quot; title=&quot;例外処理で注意したいこと - by shigemk2&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>2012-11-29 15:25:39</published>
  <title>例外処理で注意したいこと</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20121129/1354170339</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
