throw correct exception

when an argument is incorrect, throw IllegalArgumentException
not IllegalStateException

Change-Id: I9a33410617ab6a00147c3ab2010ed31251983329
This commit is contained in:
Vasu Nori
2010-06-15 11:32:27 -07:00
parent d127fb69ae
commit daa4e4faff

View File

@@ -2355,7 +2355,7 @@ public class SQLiteDatabase extends SQLiteClosable {
}
int i = mConnectionPool.getMaxPoolSize();
if (size < i) {
throw new IllegalStateException(
throw new IllegalArgumentException(
"cannot set max pool size to a value less than the current max value(=" +
i + ")");
}