Search in sources :

Example 1 with CatalogNotFoundException

use of com.netflix.metacat.common.server.connectors.exception.CatalogNotFoundException in project metacat by Netflix.

the class ConnectorManager method getConnectorFactory.

/**
     * Returns the connector factory for the given <code>catalogName</code>.
     *
     * @param catalogName catalog name
     * @return Returns the connector factory for the given <code>catalogName</code>
     */
private ConnectorFactory getConnectorFactory(final String catalogName) {
    Preconditions.checkNotNull(catalogName, "catalogName is null");
    final ConnectorFactory result = connectorFactories.get(catalogName);
    if (result == null) {
        throw new CatalogNotFoundException(catalogName);
    }
    return result;
}
Also used : ConnectorFactory(com.netflix.metacat.common.server.connectors.ConnectorFactory) CatalogNotFoundException(com.netflix.metacat.common.server.connectors.exception.CatalogNotFoundException)

Aggregations

ConnectorFactory (com.netflix.metacat.common.server.connectors.ConnectorFactory)1 CatalogNotFoundException (com.netflix.metacat.common.server.connectors.exception.CatalogNotFoundException)1