You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
430 B

package exception;
public class ParseException extends SpiderException {
public enum ErrorType {
INVALID_HTML,
TAG_NOT_FOUND,
REGEX_ERROR
}
private final ErrorType errorType;
public ParseException(String message, ErrorType errorType) {
super(message);
this.errorType = errorType;
}
public ErrorType getErrorType() {
return errorType;
}
}