From 0ad21783b85c2caa79cbd43fa347b02269d6cce1 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 4 Feb 2019 08:58:50 -0800 Subject: [PATCH] add rowid to NoSuchGameException --- .../src/main/java/org/eehouse/android/xw4/GameUtils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java index 671d4b0ff..8ca4489f6 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java @@ -76,8 +76,11 @@ public class GameUtils { private static final long RESEND_INTERVAL_SECS = 60 * 5; // 5 minutes public static class NoSuchGameException extends RuntimeException { - public NoSuchGameException() { - Log.i( TAG, "NoSuchGameException()"); + private long m_rowID; + public NoSuchGameException( long rowid ) { + m_rowID = rowid; + Log.i( TAG, "NoSuchGameException(rowid=%d)", rowid); + // DbgUtils.printStack( TAG ); } } @@ -100,7 +103,7 @@ public class GameUtils { } if ( null == result ) { - throw new NoSuchGameException(); + throw new NoSuchGameException( rowid ); } return result;