Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daa4e4fa authored by Vasu Nori's avatar Vasu Nori
Browse files

throw correct exception

when an argument is incorrect, throw IllegalArgumentException
not IllegalStateException

Change-Id: I9a33410617ab6a00147c3ab2010ed31251983329
parent d127fb69
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2355,7 +2355,7 @@ public class SQLiteDatabase extends SQLiteClosable {
        }
        }
        int i = mConnectionPool.getMaxPoolSize();
        int i = mConnectionPool.getMaxPoolSize();
        if (size < i) {
        if (size < i) {
            throw new IllegalStateException(
            throw new IllegalArgumentException(
                    "cannot set max pool size to a value less than the current max value(=" +
                    "cannot set max pool size to a value less than the current max value(=" +
                    i + ")");
                    i + ")");
        }
        }