Upgrade the python doc generator's `ReferenceResolver` to handle errors consistently.
Upgrade the python doc generator's `ReferenceResolver` to handle errors consistently.

Report all errors, and the name of the file they occurred in.

The errors are not serialized with the reference resolver.

PiperOrigin-RevId: 161066611

tensorflow/docs,tensorflow/docs,tensorflow/docs-l10n,tensorflow/docs