This leads to the question of what happens when an error occurs in an error handler. In the case of centralized error-handling routines and error handlers that are called, the error is passed up the calling chain. The procedure that called the error handler then has a chance to deal with the error.