<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamata78</author_name>
  <author_url>https://blog.hatena.ne.jp/tamata78/</author_url>
  <blog_title>気軽に楽しくプログラムと遊ぶ</blog_title>
  <blog_url>https://tamata78.hatenablog.com/</blog_url>
  <categories>
    <anon>kotlin</anon>
    <anon>例外処理</anon>
  </categories>
  <description>try-catchとrunCatching foldの違い try-catchとは try-catchはKotlinの言語機能として提供される例外処理機構である。tryブロック内で例外が発生する可能性のあるコードを実行し、catchブロックで例外を捕捉して処理する。finallyブロックを追加すれば、例外の発生に関わらずクリーンアップ処理を実行できる。例外はuncheckedのみで、コンパイル時にチェックされない。 runCatchingとfoldとは runCatchingはKotlin標準ライブラリの関数で、指定されたブロックを実行し、成功時は結果をResultオブジェクトに封装して返す。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2025%2F10%2F21%2F162037&quot; title=&quot;try-catchとrunCatching foldの違いとメリデメ - 気軽に楽しくプログラムと遊ぶ&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>2025-10-21 16:20:37</published>
  <title>try-catchとrunCatching foldの違いとメリデメ</title>
  <type>rich</type>
  <url>https://tamata78.hatenablog.com/entry/2025/10/21/162037</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
