From 5575aa1ab547701dceee79904a8ff8b0b0258851 Mon Sep 17 00:00:00 2001 From: HuangZhikai <386754646@qq.com> Date: Sun, 31 May 2026 14:51:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'project/exception'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/exception/TimeoutException.java | 11 +++++++++++ project/exception/UnsupportedCrawlerException.java | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 project/exception/TimeoutException.java create mode 100644 project/exception/UnsupportedCrawlerException.java 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