In this article we’ll focus on handling errors in Swift.
Proper error handling is crucial to writing effective production-level code that will get shipped with real apps. Often, while working on an app’s features, developers tend to focus on the “HAPPY PATH” (see the diagram below)—but in reality, we can’t ship any app without properly addressing different error scenarios that might occur in our code flows.