public static MetaException newMetaException(Exception e) {
    return newMetaException(e != null ? e.getMessage() : null, e);
  }
convert Exception to MetaException, which sets the cause to such exception
@param e cause of the exception
@return  the MetaException with the specified exception as the cause
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java