public static void throwMetaException(Exception e) throws MetaException {
    throw new MetaException("Got exception: " + e.getClass().getName() + " " + e.getMessage());
  }
Catches exceptions that cannot be handled and wraps them in MetaException.

@param e exception to wrap.
@throws MetaException wrapper for the exception
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java