Skip to content

Commit cd7ab97

Browse files
committed
Add Exception to describe non-200 responses.
1 parent af8e1a7 commit cd7ab97

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package fr.rabian.ovhApi.core.utils;
2+
3+
import java.io.IOException;
4+
5+
/**
6+
* @author Adrien Rabian
7+
*/
8+
public class NOKResponseException extends IOException {
9+
public NOKResponseException(int responseCode) {
10+
super("HTTP response code " + responseCode + " encountered.");
11+
}
12+
}

0 commit comments

Comments
 (0)