![JAR search and dependency download from the Maven repository](/logo.png)
fr.whimtrip.ext.jwhtscrapper.exception.NoProxyFinderProvidedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whimtrip-ext-scrapper Show documentation
Show all versions of whimtrip-ext-scrapper Show documentation
Fully featured highly pluggable and customizable Java scrapping framework
The newest version!
package fr.whimtrip.ext.jwhtscrapper.exception;
import fr.whimtrip.ext.jwhtscrapper.annotation.ProxyConfig;
import fr.whimtrip.ext.jwhtscrapper.intfr.ProxyFinder;
import fr.whimtrip.ext.jwhtscrapper.service.AutomaticScrapperManagerBuilder;
/**
* Part of project jwht-scrapper
* Created on 08/08/18
*
*
* Thrown when no {@link ProxyFinder} was provided when constructing the
* scrapper {@link AutomaticScrapperManagerBuilder#setProxyFinder(ProxyFinder)}
* while {@link ProxyConfig#useProxy()} returns {@code true}.
*
* @author Louis-wht
* @since 1.0.0
*/
public class NoProxyFinderProvidedException extends ScrapperException {
public NoProxyFinderProvidedException() {
super(
String.format(
"No %s instance was submitted through %s method " +
"\"setProxyFinder\" while @%s \"useProxy\" is enabled.",
ProxyFinder.class,
AutomaticScrapperManagerBuilder.class,
ProxyConfig.class.getName()
)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy