code: public void doneWithInvalidResponse(InvalidResponseException e) {
          lock.lock();
          try {
              illegalResponseException = e;
              condition.signal();
          } finally {
              lock.unlock();
          }
      }
docs: Done with invalid response (negative response/non OK command_status).
  
  @param e is the {@link InvalidResponseException}.