Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.errors.error_code_from_exception_type

tf.errors.error_code_from_exception_type(cls)

Defined in tensorflow/python/framework/errors_impl.py.