<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>absg</author_name>
  <author_url>https://blog.hatena.ne.jp/absg/</author_url>
  <blog_title>やったこと</blog_title>
  <blog_url>https://absg.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>CakePHP3で例外を発生させたいのですが「Exception()」を使おうとすると「Error: Class 'App\Controller\Exception' not found 」とエラーが表示されて使用出来ません。「Exception()」を使うには、下記のように「use \Exception;」しないとダメなんですね～。 use \Exception; public function rename(){ try{ $user = $this-&gt;Users-&gt;find()-&gt;where(['name' =&gt; 'hogetan'])-&gt;first(); $user-&gt;name = '…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fabsg.hatenablog.com%2Fentry%2F2016%2F05%2F03%2F195237&quot; title=&quot;【CakePHP3】例外処理 Exception() が使えないとき！ - やったこと&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>2016-05-03 19:52:37</published>
  <title>【CakePHP3】例外処理 Exception() が使えないとき！</title>
  <type>rich</type>
  <url>https://absg.hatenablog.com/entry/2016/05/03/195237</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
