diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:41:56 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:41:56 +1300 |
commit | 679c2852e3c4987091e0b84b7e7d80a9f72964a0 (patch) | |
tree | c0fe0ab222bbd251b25e3520c5f62c68669fbaa2 /src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java | |
parent | 68569c05fb4be377baed5cd0ecb1b75176d24f01 (diff) | |
download | trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.tar.gz trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.tar.bz2 trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.zip |
Add exception classes and more renames
Diffstat (limited to 'src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java')
-rw-r--r-- | src/org/traccar/geolocation/OpenCellIdGeolocationProvider.java | 4 |
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")); } } |