<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dimn_zkym</author_name>
  <author_url>https://blog.hatena.ne.jp/dimn_zkym/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>STORES ネットショップ</anon>
    <anon>バックエンド</anon>
  </categories>
  <description>STORES のバックエンドエンジニアの@zakkyです。 本記事は、hey アドベントカレンダー 2020 の 4 日目の記事です！ アドベントカレンダーに記事を書くのは初めてで、何を書くか悩みました。 技術記事は過去の自分に向けて書くのがちょうど良いという言葉を先日耳にしたので、 「エラーを表現する際は、Rubyのカスタム例外を使うよう過去の自分に言いたいな」 と思い、今回のテーマを選びました。 RuntimeErrorだけで例外処理を済ませていませんか？ 過去の私はアプリケーションコードの中で例外を発生させたいときは、以下のように書くことがほとんどでした raise &quot;許容していないデー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2020%2F12%2F04%2F110528&quot; title=&quot;Rubyのカスタム例外をちゃんと使おうと思った話 - STORES Product Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/d/dimn_zkym/20201127/20201127005659.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-04 11:05:28</published>
  <title>Rubyのカスタム例外をちゃんと使おうと思った話</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2020/12/04/110528</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
