Add constructor with responseCode

This commit is contained in:
chimp1984 2020-12-14 11:24:07 -05:00
parent 7d06bf3803
commit 664ebc13b5
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -17,8 +17,18 @@
package bisq.network.http; package bisq.network.http;
import lombok.Getter;
public class HttpException extends Exception { public class HttpException extends Exception {
@Getter
private int responseCode;
public HttpException(String message) { public HttpException(String message) {
super(message); super(message);
} }
public HttpException(String message, int responseCode) {
super(message);
this.responseCode = responseCode;
}
} }