private void maybeSetFirstException(final boolean ignoreTaskMigrated,
                                        final RuntimeException exception,
                                        final AtomicReference<RuntimeException> firstException) {
        if (!ignoreTaskMigrated || !(exception instanceof TaskMigratedException)) {
            firstException.compareAndSet(null, exception);
        }
    }
Produces a string representation containing useful information about the TaskManager.
This is useful in debugging scenarios.

@return A string representation of the TaskManager instance.
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java