wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r513277 - /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java
Date Thu, 01 Mar 2007 11:06:40 GMT
Author: jbq
Date: Thu Mar  1 03:06:39 2007
New Revision: 513277

URL: http://svn.apache.org/viewvc?view=rev&rev=513277
Log:
WICKET-329 Improve AbstractDetachableModel error messages

Adding newlines to make it easier to find relevant information when getObject()
or setObject() fail

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java?view=diff&rev=513277&r1=513276&r2=513277
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java
(original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/model/AbstractDetachableModel.java
Thu Mar  1 03:06:39 2007
@@ -103,8 +103,8 @@
 		}
 		catch (RuntimeException e)
 		{
-			throw new WicketRuntimeException("unable to get object, model: " + this
-					+ ", called with component " + component, e);
+			throw new WicketRuntimeException("unable to get object\nmodel: " + this
+					+ "\ncalled with component " + component, e);
 		}
 	}
 
@@ -130,8 +130,8 @@
 		}
 		catch (RuntimeException e)
 		{
-			throw new WicketRuntimeException("unable to set object " + object + ", model: " + this
-					+ ", called with component " + component, e);
+			throw new WicketRuntimeException("unable to set object " + object + "\nmodel: " + this
+					+ "\ncalled with component " + component, e);
 		}
 	}
 



Mime
View raw message