Module 3 of 3 in Advanced Swift Techniques

Advanced Error Handling & Result Types

Share
Save for later

Module outcomes

  • Review basic error handling with optionals and throw-catch.
  • Learn how typed throws can help the compiler help you.
  • Learn when Result types can be useful, for example, when you need to retain operation values.

Covered concepts

  • try, try? and try!
  • throw, do-catch
  • Typed throw
  • Result type

Module content

1
Review Basics Lesson (13 mins)
IntroductionStart
Optionals
Throw-Catch
Conclusion
2
Typed Throws Lesson (7 mins)
IntroductionStart
Typed Throws
Conclusion
3
Result Type Lesson (11 mins)
IntroductionStart
Result Type
Use Cases
Conclusion