Module 3 of 4 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

Next module

iOS & Swift New
App Observability
This module covers the basic concepts of App Observability (App Telemetry) which allows you to gather insi... more

Instructors

Contributors

Adriana Kutenko

Illustrator

Ehab Amer

Final Pass Editor

Over 300 content creators. Join our team.