Pass error code to error handler.