class_docstr: Raised when an operation or step is cancelled.
  
  For example, a long-running operation (e.g.
  @{tf.QueueBase.enqueue} may be
  cancelled by running another operation (e.g.
  @{tf.QueueBase.close},
  or by @{tf.Session.close}.
  A step that is running such a long-running operation will fail by raising
  `CancelledError`.
  
  @@__init__
class_docstr_tok: ["Raised","when","an","operation","or","step","is","cancelled",".","For","example",",","a","long-running","operation","(","e.g",".","@","{","tf.QueueBase.enqueue","}","may","be","cancelled","by","running","another","operation","(","e.g",".","@","{","tf.QueueBase.close","}",",","or","by","@","{","tf.Session.close","}",".","A","step","that","is","running","such","a","long-running","operation","will","fail","by","raising","`","CancelledError","`",".","@","@","__init__"]
docstr: Creates a `CancelledError`.
docstr_tok: ["Creates","a","`","CancelledError","`","."]
code: def __init__(self, node_def, op, message):
      """Creates a `CancelledError`."""
      super().__init__(node_def, op, message, CANCELLED)
  
imports: import traceback
  import warnings
  from .None import error_codes
label_desc: Use image node_id 1 to create a new CancelledError object from inherited base classes: OpError with example: obj = CancelledError(node_def, op, message)