how to branch out to your code and handle the error then resume on the next line