如何处理finally块中的异常 [英] how to Handle exception in finally block
本文介绍了如何处理finally块中的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
昨天我在印度Corbus的采访中遇到了这个问题……如何在Finally代码块中处理异常……以及如果出现错误,控件将移至何处????如果有人知道,请回复
Hi all,
Yesterday i face this question in my interview in corbus india........how to handle exception in Finally block....and where the control goes if error comes???? Please Reply if anyone know this
推荐答案
请参考以下一些不错的CP文章:
.NET中的异常处理最佳实践 [使用Try ... Catch ...,最后! [最终封锁" [ C#初学者的异常处理 [ C#和ASP .Net中的异常处理 [ ^ ]
Please refer following some nice articles of CP:
Exception Handling Best Practices in .NET[^]
Using Try... Catch..., Finally![^]
Also refer this:
The finally Block[^]
Exception Handling for C# Beginners[^]
Exception handling in C# and ASP .Net[^]
这篇关于如何处理finally块中的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文