How do I get the error message in Swift 2.0?
问题 I used this method very much in Swift 1.2: NSURLConnection.sendSynchronousRequest(:_:_:_) but this is apparently deprecated in iOS9. It still works however but now it uses the new Swift 2.0 Error Handling and I don't know how I will get the error message if it fails, ex. if time runs out. I know I have to put it into a do-catch and then say try before the metho but I dont know how to catch the error message. do { let data = try NSURLConnection.sendSynchronousRequest(request, returningResponse