You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2010/07/29 11:17:45 UTC
svn commit: r980374 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java
Author: noelgrandin
Date: Thu Jul 29 09:17:44 2010
New Revision: 980374
URL: http://svn.apache.org/viewvc?rev=980374&view=rev
Log:
improve message details in exception
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java?rev=980374&r1=980373&r2=980374&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java Thu Jul 29 09:17:44 2010
@@ -398,7 +398,7 @@ public class Window extends Container {
protected void setParent(Container parent) {
if (parent != null
&& (!(parent instanceof Display))) {
- throw new IllegalArgumentException("Window parent must be null or display.");
+ throw new IllegalArgumentException("Window parent must be null or display, cannot be " + parent);
}
if (parent == null