def isDoomed():
    """Returns True if the current transaction is doomed, otherwise False.

        In explicit mode, if a transaction hasn't begun, a
        `NoTransaction` exception will be raised.
        """
