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?
↧