Alamofire不可能在里面创建.responseJSON

时间:2015-09-11 19:06:22

标签: swift2 alamofire

我有这种方法可以联系我的REST网络服务。 我想在或连接失败时生成异常。 Xcode告诉我,我不能使用函数throw VendingMachineError.InvalidSelection因为method .responseJSON {(request, response, JSON) in ecc ...无法进行转换。 我怎样才能解决这个问题?谢谢你的帮助。 enter image description here

0 个答案:

没有答案