try-catch 语法
来源:互联网 发布:英文翻译软件哪个最好 编辑:程序博客网 时间:2024/05/29 10:28
c#中异常捕获
语法:
try
{
有可能出现错误的代码写在这里
}
catch
{
出错后的处理
}
如果try中的代码没有出错,则程序正常运行try中的内容后,不会执行catch中的内容,
如果try中的代码一但出错,程序立即跳入catch中去执行代码,那么try中出错代码后的所有代码就不再执行了.
阅读全文
0 0
- try-catch基础语法
- try-catch 语法
- 学会用 try,catch语法捕获异常
- java7中的智能try catch语法
- try catch
- try{} catch{}
- try catch
- try...catch
- try{} catch(...){}
- try catch
- try-catch
- try catch
- try-catch
- try catch
- try catch
- try catch
- try catch
- try catch
- 数据结构第五周项目- 后缀表达式
- XTU1178 Rectangle--判断矩形是否相交
- 一、安装linux系统
- qml之与C++交互
- flume 总结
- try-catch 语法
- Qt 5.6+MySQL5.7.18
- 机器学习之概念偏移
- 部署
- CopyOnWriteArrayList类set方法疑惑?
- Executor框架(二)
- 313. Super Ugly Number
- Java 并发 --- 非阻塞队列之ConcurrentLinkedQueue源码分析
- 0基础学Python(4)——验证码函数