Can't get throws to work with function with completion handler
问题 I'm trying to add a throws to my existing function with a completion handler but I keep getting a warning saying no calls throwing functions occur within try expression . In the section where I throw the errors, I get an error saying invalid conversion from throwing function of type '() throwing -> Void' to non-throwing function type. enum LoginError: ErrorType { case Invalid_Credentials case Unable_To_Access_Login case User_Not_Found } @IBAction func loginPressed(sender: AnyObject) { do{ try