easiest way is to create a jira issue

-igor


On 2/23/07, ChuckDeal <[EMAIL PROTECTED]> wrote:


In my specific case it is Wicket 1.3, AbstractDetachableModel,
setObject();
but I image it would apply in other cases as well.

Does anyone else see any value to making this small change to the
exception
message?

Currently:
throw new WicketRuntimeException("unable to set object " + object + ",
model: " + this
                                        + ", called with component " +
component, e);

Proposed:
throw new WicketRuntimeException("unable to set object " + object +
"\nmodel: " + this
                                        + "\n called with component " +
component, e);

Basically, put the three parts of the exception on different lines.  Why?
Well, the toString output of the model that is attached to the failing
component is HUGE and it makes it hard to find the exception "readily".
Having the parts on different lines would allow me to easily recognize the
component that is failing instead of have to search for the phrase "called
with component" in the error message to seek to the correct location in
the
message.

I know, it is trivial to search the message, but I am a fan of the tool
working for me.  I would be willing to submit a patch, I would just need
to
know the approved format as well as what exceptions message to change.

Chuck
--
View this message in context:
http://www.nabble.com/I-propose-a-slight-change-to-setObject-exception-message-tf3278997.html#a9119249
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to