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.
 
 
 

19 lines
524 B

package exception;
public class ParseException extends Exception {
public ParseException(String message) {
super(message);
}
public ParseException(String message, Throwable cause) {
super(message, cause);
}
public static ParseException invalidSelector(String selector) {
return new ParseException("无效的选择器: " + selector);
}
public static ParseException emptyResult(String source) {
return new ParseException("解析结果为空: " + source);
}
}