aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java')
-rw-r--r--src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java b/src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
index 7d129e3e9..d6e45b550 100644
--- a/src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
+++ b/src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
@@ -55,7 +55,7 @@ public class OpenCellIdGeolocationProvider implements GeolocationProvider {
json.getJsonNumber("lat").doubleValue(),
json.getJsonNumber("lon").doubleValue(), 0);
} else {
- callback.onFailure(new IllegalArgumentException("Coordinates are missing"));
+ callback.onFailure(new GeolocationException("Coordinates are missing"));
}
}
return null;
@@ -68,7 +68,7 @@ public class OpenCellIdGeolocationProvider implements GeolocationProvider {
});
} else {
- callback.onFailure(new IllegalArgumentException("No network information"));
+ callback.onFailure(new GeolocationException("No network information"));
}
}