2 changed files with 25 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
package com.crawler.exception; |
|||
|
|||
public class TimeoutException extends NetworkException { |
|||
public TimeoutException(String message) { |
|||
super(message); |
|||
} |
|||
|
|||
public TimeoutException(String message, Throwable cause) { |
|||
super(message, cause); |
|||
} |
|||
} |
|||
@ -0,0 +1,14 @@ |
|||
package com.crawler.exception; |
|||
|
|||
public class UnsupportedCrawlerException extends ConfigurationException { |
|||
private String url; |
|||
|
|||
public UnsupportedCrawlerException(String message, String url) { |
|||
super(message); |
|||
this.url = url; |
|||
} |
|||
|
|||
public String getUrl() { |
|||
return url; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue