后继续代码,我想知道是否有办法让一个异常被抛出后的程序继续进行。例如:异常
Try
line 1
line 2
line 3
line 4 (here the exception is thrown and jumps to the catch)
line 5 <-- i would like the program to continue its execution loging the error
line 6
Catch ex as Exception
log(ex.tostring)
End Try
谢谢。
你觉得有必要洗澡打字,经过? :) – 2010-07-29 20:28:39
噢......你打我吧:) ,如果你不喜欢创建所有的try-catch块总是有可怕的goto语句。但我不会建议! – 2010-07-29 20:30:17
UFF很好,好像是去..感谢 – carlos 2010-07-29 20:36:40