Swift 2.0 exception handling
问题 We want to know error handling mechanism in SWIFT for whole block of code. As, in swift, there are some techniques used for error handling, some of them are like using guard or if let . Also we can achieve it using do - catch statement. But we are getting stuck while handling error for whole bunch of code using single try-catch block as we were doing in Objective-C . In Objective-C this block was easily handling errors within any line of code in it. So we want to know this type of mechanism