<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cheesepie</author_name>
  <author_url>https://blog.hatena.ne.jp/cheesepie/</author_url>
  <blog_title>Cheese Pie</blog_title>
  <blog_url>https://cheesepie.hatenadiary.org/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>例外をキャッチしたときにしたいこと ログ取り エラー画面の表示 なので、Exceptionクラスを拡張して、上の2つのメソッドを追加する。 ・exception.php &lt;?php /* */ class My_Exception extends Exception { protected $error_message; protected $template = &quot;errors/500.phtml&quot;; public function __construct($message, $code=0) { parent::__construct($message, $code); // $this-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcheesepie.hatenadiary.org%2Fentry%2F20090216%2F1234714495&quot; title=&quot;例外処理とロギングのひな形 - Cheese Pie&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>2009-02-16 01:14:55</published>
  <title>例外処理とロギングのひな形</title>
  <type>rich</type>
  <url>https://cheesepie.hatenadiary.org/entry/20090216/1234714495</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
