add rowid to NoSuchGameException

This commit is contained in:
Eric House 2019-02-04 08:58:50 -08:00
parent 8ff23294e6
commit 0ad21783b8

View file

@ -76,8 +76,11 @@ public class GameUtils {
private static final long RESEND_INTERVAL_SECS = 60 * 5; // 5 minutes private static final long RESEND_INTERVAL_SECS = 60 * 5; // 5 minutes
public static class NoSuchGameException extends RuntimeException { public static class NoSuchGameException extends RuntimeException {
public NoSuchGameException() { private long m_rowID;
Log.i( TAG, "NoSuchGameException()"); 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 ) { if ( null == result ) {
throw new NoSuchGameException(); throw new NoSuchGameException( rowid );
} }
return result; return result;