diff --git a/project/exception/TimeoutException.java b/project/exception/TimeoutException.java new file mode 100644 index 0000000..241c874 --- /dev/null +++ b/project/exception/TimeoutException.java @@ -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); + } +} \ No newline at end of file diff --git a/project/exception/UnsupportedCrawlerException.java b/project/exception/UnsupportedCrawlerException.java new file mode 100644 index 0000000..cb13302 --- /dev/null +++ b/project/exception/UnsupportedCrawlerException.java @@ -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; + } +} \ No newline at end of file