Error handling makes everything more complicated. Ugh! What do you do if a network call times out (pretty common)? Or you’re trying to save an image and there is no disk space (less common but can happen)? Or that thing that’s never supposed to happen happens (occasionally happens)?
I mean, you have to do something, right? Ugh. π€¦π»ββοΈ
Here are some tips. Thanks to Swift By Sundell for giving this topic some attention.
π Propagating user-facing errors in Swift
Via iOS Dev Weekly.
One thought on “We All Hate Error Handling. Here Are Some Tips.”