mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
add rowid to NoSuchGameException
This commit is contained in:
parent
8ff23294e6
commit
0ad21783b8
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue