throw correct exception
when an argument is incorrect, throw IllegalArgumentException not IllegalStateException Change-Id: I9a33410617ab6a00147c3ab2010ed31251983329
This commit is contained in:
@@ -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 + ")");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user