pass the next oject to the error handler
docs