tf.errors.error_code_from_exception_type

tf.errors.error_code_from_exception_type(cls)

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

See the guide: Running Graphs > Error classes and convenience functions