From e15d9385e04e229c2cbe9ffa5cafec3d3e037940 Mon Sep 17 00:00:00 2001 From: b_b <77609708+bhavya-bugude@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:44:12 -0400 Subject: [PATCH] Update UintUtils.java Fixed error in DataOutOfRangeException class by extending Exception and passing errorMessage to the superclass constructor --- src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java b/src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java index 6f444ca44..19f7be0f7 100644 --- a/src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java +++ b/src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java @@ -28,7 +28,7 @@ public static long diff(long a, long b, final long UINT_MAX) { return (UINT_MAX + 1 - b) + a; } - static class DataOutOfRangeException extends RuntimeException{ + static class DataOutOfRangeException extends Exception{ public DataOutOfRangeException(String errorMessage){ super(errorMessage); }