异常捕获

程序有两种错误,一是编译错误(语法等错误),二是运行时错误(内存问题等)。

语法:

  try

  {

    

  }

  catch()

  {

  

  }

throw "异常语句";

原文地址:https://www.cnblogs.com/judes/p/5886939.html