We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9a7af commit e74f504Copy full SHA for e74f504
src/main/java/io/ipgeolocation/api/exceptions/IPGeolocationError.java
@@ -0,0 +1,23 @@
1
+package io.ipgeolocation.api.exceptions;
2
+
3
+public class IPGeolocationError extends RuntimeException {
4
+ private int status = -1;
5
6
+ public IPGeolocationError(Throwable e) {
7
+ super(e);
8
+ }
9
10
+ public IPGeolocationError(String message) {
11
+ super(message);
12
13
14
+ public IPGeolocationError(int status, String message) {
15
16
17
+ this.status = status;
18
19
20
+ public int getStatus() {
21
+ return status;
22
23
+}
0 commit comments