<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jcshin</author_name>
  <author_url>https://blog.hatena.ne.jp/jcshin/</author_url>
  <blog_title>ローソンデジタルイノベーション　テックブログ</blog_title>
  <blog_url>https://techblog.ldi.co.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
  </categories>
  <description>はじめに iOSエンジニアの申です。今回はエラーハンドリング時に発生した問題とTyped throwsの活用についてご紹介させていただきます。 発生した問題とその原因 エラーが返される可能性がある関数を実行した際にエラーが発生した場合、そのエラーをハンドリングして内容を表示するところでエラー内容が正しく表示されない問題が発生しました。 class MyViewController: UIViewController { func handleResponse(result: MyResult?, error: Error?) { if let error = error as? CustomE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.ldi.co.jp%2Fentry%2F2025%2F02%2F25%2F185438&quot; title=&quot;Swift 6のTyped throwsを活用する型安全なエラーハンドリング - ローソンデジタルイノベーション　テックブログ&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.user.blog.st-hatena.com/default_entry_og_image/155681437/1622441958940729</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-25 18:54:38</published>
  <title>Swift 6のTyped throwsを活用する型安全なエラーハンドリング</title>
  <type>rich</type>
  <url>https://techblog.ldi.co.jp/entry/2025/02/25/185438</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
