throw new SQLException("Unknown table type: " + tableType +
". Supported types are TABLE and VIEW.");
}
if (ti == null)
throw new LookupFailureException("Failed to find table info for '" + table + "'.");
}
catch (SQLException ex) {
String errorMessage = "Failed to get meta data info of '" + table +
"' with database connection '" + connName + "'" +
" catalog '" + catalog + "', schema '" + schema + "'.";
errorMessage += " Reason: " + ex.getMessage() + ".";
log.error("Exception in createTableInfo(): " + errorMessage);
throw new LookupFailureException(errorMessage, ex);
}
return ti;
}