public Optional<TaskId> taskId() {
        return Optional.ofNullable(taskId);
    }
@return  the {@link TaskId} that this exception originated from, or {@link Optional#empty()} if the exception
         cannot be traced back to a particular task. Note that the {@code TaskId} being empty does not
         guarantee that the exception wasn't directly related to a specific task.
streams/src/main/java/org/apache/kafka/streams/errors/StreamsException.java