Wie Sie weiterhin das ausführen von code nach der eine Ausnahme geworfen wird?

Ich würde gerne wissen, ob es eine Möglichkeit gibt, damit das Programm fortgesetzt werden soll, nachdem eine Ausnahme ausgelöst wird. Zum Beispiel:

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, logging the error
  line 6  

Catch ex as Exception
   log(ex.tostring)
End Try
InformationsquelleAutor carlos | 2010-07-29
Schreibe einen Kommentar