假设我们有如下 struct :
Try
' Outer try code, that can fail with more generic conditions,
' that I know less about and might not be able to handle
Try
' Inner try code, that can fail with more specific conditions,
' that I probably know more about, and are likely to handle appropriately
Catch innerEx as Exception
' Handle the inner exception
End Try
Catch outerEx as Exception
' Handle outer exception
End Try
我看到一些观点认为,不鼓励像这样筑巢Try
个街区,但我找不到任何具体原因.
这是不是错误的代码?若有,原因为何?