後繼續代碼,我想知道是否有辦法讓一個異常被拋出後的程序繼續進行。例如:異常
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