Return-Path: Delivered-To: apmail-incubator-wicket-commits-archive@locus.apache.org Received: (qmail 43400 invoked from network); 1 Mar 2007 11:07:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 11:07:01 -0000 Received: (qmail 67882 invoked by uid 500); 1 Mar 2007 11:07:10 -0000 Delivered-To: apmail-incubator-wicket-commits-archive@incubator.apache.org Received: (qmail 67865 invoked by uid 500); 1 Mar 2007 11:07:10 -0000 Mailing-List: contact wicket-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: wicket-dev@incubator.apache.org Delivered-To: mailing list wicket-commits@incubator.apache.org Received: (qmail 67850 invoked by uid 99); 1 Mar 2007 11:07:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 03:07:09 -0800 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 03:07:00 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 93A8B1A981A; Thu, 1 Mar 2007 03:06:40 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: wicket-commits@incubator.apache.org From: jbq@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070301110640.93A8B1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); } }