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
522 B

package com.example.datacollect.exception;
public class CrawlerException extends RuntimeException {
private final ErrorCode errorCode;
public CrawlerException(ErrorCode errorCode, String message) {
super(message);
this.errorCode = errorCode;
}
public CrawlerException(ErrorCode errorCode, String message, Throwable cause) {
super(message, cause);
this.errorCode = errorCode;
}
public ErrorCode getErrorCode() {
return errorCode;
}
}