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

package com.crawler.exception;
public class HttpRequestException extends NetworkException {
private int statusCode;
public HttpRequestException(String message, int statusCode) {
super(message);
this.statusCode = statusCode;
}
public HttpRequestException(String message, int statusCode, Throwable cause) {
super(message, cause);
this.statusCode = statusCode;
}
public int getStatusCode() {
return statusCode;
}
}