You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/04/02 23:21:27 UTC
[jira] Commented: (WICKET-2819) When unable to create a page, throw
a specific exception instead of WicketRuntimeException
[ https://issues.apache.org/jira/browse/WICKET-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852955#action_12852955 ]
Igor Vaynberg commented on WICKET-2819:
---------------------------------------
> Thus, it would allow us to deal cleanly with this type of exception
this exception is a development-time error, how would you deal with it cleanly?
> (and providing a better error message to our users).
once again, this is development time - who are your "users" you are refering to? also the exception has all the information one may need to fix the problem...
> When unable to create a page, throw a specific exception instead of WicketRuntimeException
> ------------------------------------------------------------------------------------------
>
> Key: WICKET-2819
> URL: https://issues.apache.org/jira/browse/WICKET-2819
> Project: Wicket
> Issue Type: Improvement
> Reporter: Joseph Pachod
> Priority: Minor
>
> currently, when the DefaultPageFactory doesn't succeed in creating a given page, it throws a WicketRuntimeException with some message like " Unable to create page from class org.demo.TestPage. Class does neither have a constructor with PageParameter nor a default constructor".
> Could it be possible to have a specific exception being thrown (extending WicketRuntimeException for sure) ?
> Thus, it would allow us to deal cleanly with this type of exception (and providing a better error message to our users).
> thanks in advance
> joseph
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.