public boolean isTableNotExistsError(Throwable t) {
    SQLException e = TxnUtils.getSqlException(t);    
    return (isPOSTGRES() && "42P01".equalsIgnoreCase(e.getSQLState()))
        || (isMYSQL() && "42S02".equalsIgnoreCase(e.getSQLState()))
        || (isORACLE() && "42000".equalsIgnoreCase(e.getSQLState()) && e.getMessage().contains("ORA-00942"))
        || (isSQLSERVER() && "S0002".equalsIgnoreCase(e.getSQLState()) && e.getMessage().contains("Invalid object"))
        || (isDERBY() && "42X05".equalsIgnoreCase(e.getSQLState()));
  }
Is the given exception a table not found exception
@param t Exception
@return
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java