If you are doing something that you know how to recover or it is not vital, you should only transfer this line to try / catch with a certain catch. eg.
Try line 1 line 2 line 3 Try line 4 ( here the exception is throw and jumps to the catch) Catch iox as IOException ' or whatever type is being thrown 'log it End Try line 5 <-- i would like the program to continue its execution after loggin the error line 6 Catch ex as Exception log(ex.tostring) End Try
Nikki9696
source share