private static void isValidOOROption(String optVal) throws FrontendException {
    boolean found = false;
    for(OOR_VALUE_OPT_VALUES v : OOR_VALUE_OPT_VALUES.values()) {
      if(v.name().equalsIgnoreCase(optVal)) {
        found = true;
        break;
      }
    }
    if(!found) {
      throw new FrontendException("Unexpected value for '" + ON_OOR_VALUE_OPT + "' found: " + optVal);
    }
  }
check that onOutOfRangeValue handling is configured properly
@throws FrontendException
hcatalog/hcatalog-pig-adapter/src/main/java/org/apache/hive/hcatalog/pig/HCatStorer.java