public static void throwMetaException(Exception e) throws MetaException, NoSuchObjectException {
    throw handleException(e)
        .throwIfInstance(MetaException.class, NoSuchObjectException.class)
        .defaultMetaException();
  }
Throws if the input exception is the instance of MetaException or NoSuchObjectException,
otherwise converts the exception to the MetaException and throws.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ExceptionHandler.java