Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.compat.v1.errors.error_code_from_exception_type

View source on GitHub
tf.compat.v1.errors.error_code_from_exception_type(cls)