Search in sources :

Example 1 with GalaxyToolDataTableException

use of ca.corefacility.bioinformatics.irida.exceptions.galaxy.GalaxyToolDataTableException in project irida by phac-nml.

the class GalaxyToolDataService method getToolDataTable.

/**
 * Gets details about a given tool data table.
 *
 * @param dataTableId
 *            The id of the tool data table.
 * @return  The Tool Data Table Object.
 * @throws GalaxyToolDataTableException
 *             If there was an issue getting the details of the tool data table.
 */
public TabularToolDataTable getToolDataTable(String dataTableId) throws GalaxyToolDataTableException {
    checkNotNull(dataTableId, "dataTableId is null");
    checkNotNull(toolDataClient, "toolDataClient is null");
    TabularToolDataTable toolDataTable = toolDataClient.showDataTable(dataTableId);
    if (toolDataTable != null) {
        return toolDataTable;
    } else {
        throw new GalaxyToolDataTableException("Could not find Tool Data Table named: " + dataTableId);
    }
}
Also used : GalaxyToolDataTableException(ca.corefacility.bioinformatics.irida.exceptions.galaxy.GalaxyToolDataTableException) TabularToolDataTable(com.github.jmchilton.blend4j.galaxy.beans.TabularToolDataTable)

Aggregations

GalaxyToolDataTableException (ca.corefacility.bioinformatics.irida.exceptions.galaxy.GalaxyToolDataTableException)1 TabularToolDataTable (com.github.jmchilton.blend4j.galaxy.beans.TabularToolDataTable)1