Question
How can I handle errors in called procedures or functions when my main procedure's error handler isn't catching them?
Asked by: USER5411
117 Viewed
117 Answers
Answer (117)
Error handling needs to be present in the procedure where the error originates. If the error occurs in a called procedure, it must have its own error handler. Alternatively, you can propagate the error back to the calling procedure by using `Err.Raise` from within the called procedure to re-raise the error, making it visible to the caller's error handler, or use `Resume [LineLabel]` after the `Err.Raise` to continue execution.