Quantcast
Channel: User LuckyLuke - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Comment by LuckyLuke on Handling errors in Swift

$
0
0
Thank you for answering. So do you create one huge Enum with all the error codes in the application, no matter where they come from? And how should I know which error codes to catch if there are nested closures? I mean if I call a method that takes a closure and that closure calls two to three other closures inside it (async stuff etc) How am I supposed to know which error I should catch? Or should I not care, just give the user a message saying something went bad?

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>