You were given the answer as to how to handle an exception in post number 2.
Code:
Try 
    'some code would be here that may trigger an exception
Catch
     'Some code would be here that will only execute if an exception occurs in the Try portion above
End Try