Move string into _new_err function so the formatted string gets passed into the errors object.
Move string into _new_err function so the formatted string gets passed into the errors object.

PiperOrigin-RevId: 351803299

google/glazier,google/glazier