docs: private static DriverException unwrapAllNodesFailedException(DriverException e) {
      if (e instanceof AllNodesFailedException) {
        AllNodesFailedException noHostAvailable = (AllNodesFailedException) e;
        for (Throwable error : noHostAvailable.getErrors().values()) {
          if (error instanceof QueryConsistencyException || error instanceof UnavailableException) {
            return (DriverException) error;
          }
        }
        // Couldn't find an exploitable error to unwrap: abort.
        throw e;
      }
      // the original exceptional wasn't a NoHostAvailableException: proceed.
      return e;
    }