File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,7 +275,6 @@ py_library(
275275 name = "framework" ,
276276 srcs = [
277277 "framework/common_shapes.py" ,
278- "framework/errors.py" ,
279278 "framework/framework_lib.py" ,
280279 "framework/graph_util.py" ,
281280 "framework/graph_util_impl.py" ,
@@ -290,14 +289,18 @@ py_library(
290289 srcs_version = "PY2AND3" ,
291290 deps = [
292291 ":cpp_shape_inference_proto_py" ,
292+ ":errors" ,
293293 ":framework_for_generated_wrappers" ,
294294 ":pywrap_tensorflow" ,
295295 ],
296296)
297297
298298py_library (
299299 name = "errors" ,
300- srcs = ["framework/errors.py" ],
300+ srcs = [
301+ "framework/errors.py" ,
302+ "framework/errors_impl.py" ,
303+ ],
301304 srcs_version = "PY2AND3" ,
302305 deps = [
303306 ":util" ,
Original file line number Diff line number Diff line change 2525
2626@@get_default_session
2727
28- ## Error classes
28+ ## Error classes and convenience functions
2929
3030@@OpError
3131@@CancelledError
4444@@InternalError
4545@@UnavailableError
4646@@DataLossError
47+
48+ @@exception_type_from_error_code
49+ @@error_code_from_exception_type
50+ @@raise_exception_on_not_ok_status
4751"""
4852
4953from __future__ import absolute_import
You can’t perform that action at this time.
0 commit comments