Pass a hash of data to the error handler.