From daa4e4faffd025c11b2a8618409b8496a6829664 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Tue, 15 Jun 2010 11:32:27 -0700 Subject: [PATCH] throw correct exception when an argument is incorrect, throw IllegalArgumentException not IllegalStateException Change-Id: I9a33410617ab6a00147c3ab2010ed31251983329 --- core/java/android/database/sqlite/SQLiteDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java index f723dc8e65ace..e33463b0fef1b 100644 --- a/core/java/android/database/sqlite/SQLiteDatabase.java +++ b/core/java/android/database/sqlite/SQLiteDatabase.java @@ -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 + ")"); }