2022-01-25 11:14:16 +01:00
|
|
|
//Marc Beyer//
|
2022-01-20 13:33:49 +01:00
|
|
|
package helper;
|
|
|
|
|
|
|
|
public class HttpRequestException extends Exception{
|
|
|
|
private int status;
|
|
|
|
|
|
|
|
public HttpRequestException(String message, int status) {
|
|
|
|
super(message);
|
|
|
|
this.status = status;
|
|
|
|
}
|
|
|
|
|
|
|
|
public HttpRequestException(Tuple<Integer, String> response) {
|
|
|
|
super(response.getValue());
|
|
|
|
this.status = response.getKey();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getStatus() {
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStatus(int status) {
|
|
|
|
this.status = status;
|
|
|
|
}
|
|
|
|
}
|