public void setError(String errorMessage) throws MetaException {
      this.errorMessage = errorMessage;
      if (expectNoErrors) {
        throw new MetaException(errorMessage);
      }
    }
Helper class that wraps the stringbuilder used to build the filter over the tree,
as well as error propagation in two modes - expect errors, i.e. filter might as well
be unbuildable and that's not a failure condition; or don't expect errors, i.e. filter
must be buildable.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/ExpressionTree.java