public ExceptionHandler toMetaExceptionIfInstance(String message, Class<?>... clzs)
      throws MetaException {
    if (clzs != null && clzs.length > 0) {
      for (Class<?> clz : clzs) {
        if (clz.isInstance(e)) {
          // throw MetaException if matches
          throw new MetaException(message);
        }
      }
    }
    return this;
  }
Creates the MetaException with the given message,
if the input exception is the instance of the one in the input classes,
throws the created MetaException.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ExceptionHandler.java