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);
}
Aggregations