摘要:
try{ ...}catch (Exception e) { //在webapi中要想抛出异常必须这样抛出,否则之抛出一个默认500的异常 var resp = new HttpResponseMessage(HttpStatusCode.InternalServerError) { Content = new StringContent(e.ToStr... 阅读全文
posted @ 2014-07-06 17:56
梨花驿路
阅读(1029)
评论(0)
推荐(0)
浙公网安备 33010602011771号