<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aoki1210</author_name>
  <author_url>https://blog.hatena.ne.jp/aoki1210/</author_url>
  <blog_title>あおきのTechメモ</blog_title>
  <blog_url>https://aoki1210.hatenablog.jp/</blog_url>
  <categories>
    <anon>.net</anon>
  </categories>
  <description>C#の例外処理におけるThrowの扱い方の違いのメモ。 C#/VB.NETでは、「throw;」を使うほうが推奨されることが多いです。「throw ex;」を使うとそれまでの情報（スタックトレースやInnerException）がクリアされます。 以下は、その確認コードです。 //ゼロ除算エラーを発生させる関数 private void ZeroDivide() { int zero = 0; int err = 1 / zero; } //exを付けてThrowする関数 private void ThrowEx() { try { ZeroDivide(); } catch (Excepti…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faoki1210.hatenablog.jp%2Fentry%2F20091007%2Fp1&quot; title=&quot;C#例外処理でのthrowとthrow exの違い - あおきのTechメモ&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-10-07 00:00:00</published>
  <title>C#例外処理でのthrowとthrow exの違い</title>
  <type>rich</type>
  <url>https://aoki1210.hatenablog.jp/entry/20091007/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
