You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/02/09 17:41:30 UTC

svn commit: r742605 - /wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java

Author: ivaynberg
Date: Mon Feb  9 16:41:30 2009
New Revision: 742605

URL: http://svn.apache.org/viewvc?rev=742605&view=rev
Log:
better exception message

Modified:
    wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java?rev=742605&r1=742604&r2=742605&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Session.java Mon Feb  9 16:41:30 2009
@@ -358,7 +358,8 @@
 		locale = request.getLocale();
 		if (locale == null)
 		{
-			throw new IllegalArgumentException("Parameter 'locale' must not be null");
+			throw new IllegalStateException(
+				"Request#getLocale() cannot return null, request has to have a locale set on it");
 		}
 	}