public void setException(IOException error) {
    synchronized (this) {
      if (done) {
        return;
      }
      this.done = true;
      this.error = error;
    }
    callComplete();
  }
Set the exception when there is an error. Notify the caller the call is done.
@param error exception thrown by the call; either local or remote
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/Call.java