mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add constructor with responseCode
This commit is contained in:
parent
7d06bf3803
commit
664ebc13b5
@ -17,8 +17,18 @@
|
||||
|
||||
package bisq.network.http;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
public class HttpException extends Exception {
|
||||
@Getter
|
||||
private int responseCode;
|
||||
|
||||
public HttpException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public HttpException(String message, int responseCode) {
|
||||
super(message);
|
||||
this.responseCode = responseCode;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user