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
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;