<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Swift Error Handling on Daniel Lyons</title><link>https://dandylyons.net/posts/series/swift-error-handling/</link><description>Recent content in Swift Error Handling on Daniel Lyons</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><lastBuildDate>Sat, 29 Mar 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://dandylyons.net/posts/series/swift-error-handling/index.xml" rel="self" type="application/rss+xml"/><item><title>Swift Error Handling: The Solution</title><link>https://dandylyons.net/posts/swift-error-handling-the-solution/</link><pubDate>Sat, 29 Mar 2025 00:00:00 +0000</pubDate><guid>https://dandylyons.net/posts/swift-error-handling-the-solution/</guid><description>&lt;h1 id="swift-error-handling-the-solution">Swift Error Handling: The Solution&lt;/h1>
&lt;p>In our last post &lt;a href="https://dandylyons.net/posts/swift-error-handling-the-problem/">Swift Error Handling: The Problem&lt;/a> , we discussed the problems with error handling in Swift. In this post, we will explore some solutions to these problems and how to implement them in your code, and we will preview my new &lt;a href="https://swiftpackageindex.com/DandyLyons/Catcher">Catcher&lt;/a> library which provides a variety of tools following these patterns. 19|&lt;/p>
&lt;p>But alas, my library is not &lt;strong>the&lt;/strong> solution. It is only &lt;strong>a&lt;/strong> solution. In the last section, we will discuss some potential new Swift features that could eliminate these problems altogether.&lt;/p></description></item><item><title>Swift Error Handling: The Problem</title><link>https://dandylyons.net/posts/swift-error-handling-the-problem/</link><pubDate>Thu, 27 Mar 2025 00:00:00 +0000</pubDate><guid>https://dandylyons.net/posts/swift-error-handling-the-problem/</guid><description>&lt;h1 id="swift-error-handling-the-problem">Swift Error Handling: The Problem&lt;/h1>
&lt;p>Error handling is a fundamental aspect of robust iOS application development. As developers, we&amp;rsquo;re constantly dealing with operations that can fail - network requests, file operations, data parsing, and user input validation. Swift provides a structured approach to error handling, but like any system, it has its strengths and weaknesses. In this first post of a three-part series, we&amp;rsquo;ll explore the current state of Swift&amp;rsquo;s error handling system, examining both what works well and what could be improved.&lt;/p></description></item></channel></rss>