Skip to content

Commit 5d45a37

Browse files
committed
Improving NOKResponseException : store the code.
1 parent 1213bfa commit 5d45a37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/fr/rabian/ovhApi/core/utils/NOKResponseException.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
* @author Adrien Rabian
77
*/
88
public class NOKResponseException extends IOException {
9+
10+
private int responseCode;
11+
912
public NOKResponseException(int responseCode) {
1013
super("HTTP response code " + responseCode + " encountered.");
14+
this.responseCode = responseCode;
15+
}
16+
17+
public int getResponseCode() {
18+
return responseCode;
1119
}
1220
}

0 commit comments

Comments
 (0)