1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||||
|
package org.example.exception; |
||||
|
|
||||
|
// 自定义运行时异常
|
||||
|
public class CrawlerException extends RuntimeException { |
||||
|
public CrawlerException(String message) { |
||||
|
super(message); |
||||
|
} |
||||
|
|
||||
|
public CrawlerException(String message, Throwable cause) { |
||||
|
super(message, cause); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue