@Override
    public void setFailed(String errorText) {
      this.failed = true;
      this.errorText = errorText;
    }
An RpcController implementation for use here in this endpoint.
hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java