Your next career begins with
Save 50% off your seat in our next iOS Bootcamp. Limited time only. Sessions start April 3.
Advanced Swift: Error Handling
Production code is all about handling errors: programming errors, user input errors, asynchronous errors. This course covers the error fundamentals you need to know. By Ray Fix.
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Learning path
This is part of the Advanced Swift learning path. View path.
Who is this for?
This course is for developers interested in getting a deeper understanding of the Swift language. It expects you to be comfortable with the basic syntax of Swift and to have perhaps written an app or two. You should be familiar with basic types in the Swift standard library.
Covered concepts
This course focuses on:
- How to express errors
- try/catch basics
- Obj-C errors
- Result types
- Optionals
- Asserts
Robust error handling is a hallmark of high-quality, production code. Let's learn the many ways we can do this.
Optionals are a great way of handling superficial errors. Asserts and preconditions can trap programming errors.
In this video, learn about how the native error system lets you propagate error information with ease.
Let's take a look at how you can define useful errors that let clients take appropriate action in this video.
App developers deal with errors from UIKit and other Objective-C libraries. Find out how they work with Swift.
Using a result type is a great way to deal with asynchronous results that may end in error. We explore this useful algebraic type.
Add a couple of methods with proper error handling to a File abstraction that uses unsafe Swift to interop with posix and behaves like a Sequence.
Correct error handling is life or death important in many contexts. Apply the concepts you learned here in your app today.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
Learn more