From 664ebc13b5ec0c68d3563de269dfdb909fe61331 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Mon, 14 Dec 2020 11:24:07 -0500 Subject: [PATCH] Add constructor with responseCode --- p2p/src/main/java/bisq/network/http/HttpException.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/p2p/src/main/java/bisq/network/http/HttpException.java b/p2p/src/main/java/bisq/network/http/HttpException.java index 9432a95393..c078a27442 100644 --- a/p2p/src/main/java/bisq/network/http/HttpException.java +++ b/p2p/src/main/java/bisq/network/http/HttpException.java @@ -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; + } }