private static void failCommand(Config config, Throwable e) throws TerseException {
        if (e instanceof TerseException) {
            throw (TerseException) e;
        }
        if (config.command == Command.LIST) {
            throw new RuntimeException("Unexpected error occurred while listing plugins", e);
        } else if (config.command == Command.SYNC_MANIFESTS) {
            // The real write errors are propagated as a TerseException, and don't take this branch.
            throw new RuntimeException("Unexpected error occurred while dry-running sync", e);
        }
    }
The unit of work for a command.
<p>This is unique to the (source, class, type) tuple, and contains additional pre-computed information
that pertains to this specific plugin.
tools/src/main/java/org/apache/kafka/tools/ConnectPluginPath.java