class_docstr: A generic error that is raised when TensorFlow execution fails.
  
  Whenever possible, the session will raise a more specific subclass
  of `OpError` from the `tf.errors` module.
class_docstr_tok: ["A","generic","error","that","is","raised","when","TensorFlow","execution","fails",".","Whenever","possible",",","the","session","will","raise","a","more","specific","subclass","of","`","OpError","`","from","the","`","tf.errors","`","module","."]
docstr: Creates a new `OpError` indicating that a particular op failed.
  
  Args:
    node_def: The `node_def_pb2.NodeDef` proto representing the op that
      failed, if known; otherwise None.
    op: The `ops.Operation` that failed, if known; otherwise None.
    message: The message string describing the failure.
    error_code: The `error_codes.Code` describing the error.
docstr_tok: ["Creates","a","new","`","OpError","`","indicating","that","a","particular","op","failed",".","Args",":","node_def",":","The","`","node_def_pb2.NodeDef","`","proto","representing","the","op","that","failed",",","if","known",";","otherwise","None",".","op",":","The","`","ops.Operation","`","that","failed",",","if","known",";","otherwise","None",".","message",":","The","message","string","describing","the","failure",".","error_code",":","The","`","error_codes.Code","`","describing","the","error","."]
code: def __init__(self, node_def, op, message, error_code):
      """Creates a new `OpError` indicating that a particular op failed.
  
      Args:
        node_def: The `node_def_pb2.NodeDef` proto representing the op that
          failed, if known; otherwise None.
        op: The `ops.Operation` that failed, if known; otherwise None.
        message: The message string describing the failure.
        error_code: The `error_codes.Code` describing the error.
      """
      super().__init__()
      self._message = message
      self._node_def = node_def
      self._op = op
      self._error_code = error_code
  
imports: import traceback
  import warnings
  from .None import error_codes
label_desc: Use image node_id 1 to create a new OpError object from inherited base classes: Exception with example: obj = OpError(node_def, op, message, error_code)