public void setStatus(Result.Status status) {
    if (this.status == Result.Status.ERROR && status != this.status) {
      throw new IllegalStateException("Can't change the error state of the result.");
    }
    this.status = status;
  }
Set the status of this {@code ResultModel}. Effectively, the only option is to set it to
ERROR. Once the state is set to ERROR it cannot be unset again.
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/model/ResultModel.java