<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>C++11</anon>
  </categories>
  <description>クラスのコンストラクタで異常を上位に返したい場合、例外を用いる以外に術はない。 こんな時は、C++例外クラスをthrowするのが良い。 もちろん例外送出時にはリソースを全て開放しておこう。 C++例外クラスで使えそうなものを上げておく。 いずれも任意の文字列を引数に取れるので、エラー内容を表す適切な英文を設定しておけば良いだろう。 std::exception ベースとなる例外、以下どれにも属さない場合はこれを使おうstd::logic_error 論理的な事前条件を満たしていないことを表すstd::invalid_argument 引数エラー logic_errorの子std::domain…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2020%2F05%2F17%2F000609&quot; title=&quot;C++ 例外クラス - Pebble Coding&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>2020-05-17 00:06:09</published>
  <title>C++ 例外クラス</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2020/05/17/000609</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
