![JAR search and dependency download from the Maven repository](/logo.png)
fr.whimtrip.ext.jwhtscrapper.exception.LinkListCastException 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.LinkListsFromBuilder;
import java.lang.reflect.Field;
import java.util.List;
/**
* Part of project jwht-scrapper
* Created on 29/07/18
*
*
* Thrown when {@link LinkListsFromBuilder} annotation is
* used on a non List typed field.
*
*
* @author Louis-wht
* @since 1.0.0
*/
public class LinkListCastException extends LinkException {
public LinkListCastException(Field field) {
super(
String.format(
"%s cannot be used on a non %s field for field %s.",
LinkListsFromBuilder.class.getName(),
List.class.getName(),
field
)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy