Announcing the TensorFlow Dev Summit 2020 Learn more

tf.compat.v1.errors.exception_type_from_error_code

View source on GitHub
tf.compat.v1.errors.exception_type_from_error_code(error_code)