![JAR search and dependency download from the Maven repository](/logo.png)
fr.whimtrip.ext.jwhtscrapper.exception.LinkClassCastException 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.Link;
import java.lang.reflect.Field;
/**
* Part of project jwht-scrapper
* Created on 29/07/18
*
*
* Thrown when a field that is not String typed is incorrectly
* annotated with @{@link Link} annotation.
*
*
* @author Louis-wht
* @since 1.0.0
*/
public class LinkClassCastException extends LinkException {
public LinkClassCastException(Field field) {
super(
String.format(
"Field %s link cannot be followed because any link provider field should" +
" hold a String typed instance.",
field
)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy