Using a Label to Handle Custom Errors
The following image includes an example that uses a label to handle a custom error.

Explanation of Callouts
The example that uses a label to handle a custom error includes the following items:
Place the code that handles the error immediately before the line of code that could cause an error.
Use a labeled section of code to handle the custom error.