try { //要包括起来的可能有错误的代码 } catch (Exception ex)//抓获错误 { throw ex; } finally { //不管try当中有没有错,都会执行 }
异常语句
原文:http://www.cnblogs.com/lz123/p/4932169.html