mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Add constructor with responseCode
This commit is contained in:
parent
7d06bf3803
commit
664ebc13b5
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user