Missed TensorFlow World? Check out the recap. 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)