Search in sources :

Example 1 with FetcherNotFoundException

use of io.gravitee.management.service.exceptions.FetcherNotFoundException in project gravitee-management-rest-api by gravitee-io.

the class FetcherServiceImpl method findById.

@Override
public FetcherEntity findById(String fetcher) {
    LOGGER.debug("Find fetcher by ID: {}", fetcher);
    FetcherPlugin fetcherDefinition = fetcherPluginManager.get(fetcher);
    if (fetcherDefinition == null) {
        throw new FetcherNotFoundException(fetcher);
    }
    return convert(fetcherDefinition, true);
}
Also used : FetcherPlugin(io.gravitee.plugin.fetcher.FetcherPlugin) FetcherNotFoundException(io.gravitee.management.service.exceptions.FetcherNotFoundException)

Aggregations

FetcherNotFoundException (io.gravitee.management.service.exceptions.FetcherNotFoundException)1 FetcherPlugin (io.gravitee.plugin.fetcher.FetcherPlugin)1