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.
17 lines
469 B
17 lines
469 B
public class UrlFormatException extends RuntimeException {
|
|
private String invalidUrl;
|
|
|
|
public UrlFormatException(String message, String invalidUrl) {
|
|
super(message);
|
|
this.invalidUrl = invalidUrl;
|
|
}
|
|
|
|
public UrlFormatException(String message, Throwable cause, String invalidUrl) {
|
|
super(message, cause);
|
|
this.invalidUrl = invalidUrl;
|
|
}
|
|
|
|
public String getInvalidUrl() {
|
|
return invalidUrl;
|
|
}
|
|
}
|