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
438 B
19 lines
438 B
package com.example.datacollect.exception;
|
|
|
|
public class NetworkException extends CrawlerException {
|
|
private final String url;
|
|
|
|
public NetworkException(String message, String url) {
|
|
super(message);
|
|
this.url = url;
|
|
}
|
|
|
|
public NetworkException(String message, String url, Throwable cause) {
|
|
super(message, cause);
|
|
this.url = url;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
}
|