Try/Catch exception continue from line that caused the exception
<p>When an exception is thrown, how can I catch it and then continue execution starting from the line that caused the error?</p>

<p>EDIT:
Our program communicates with Indesign Server which crashes all the time and throws random COM related errors (these errors have to do with bugs in the Server itself). Indesign Server also takes a very long time to process commands so when it crashes, we want to avoid restarting execution. Instead, we want to continue from the line that caused the exception. Any line in the program can cause an exception. So technically, we cannot use a loop.</p>
