[ 
https://issues.apache.org/jira/browse/WICKET-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Parson updated WICKET-4892:
---------------------------------

    Issue Type: Improvement  (was: Bug)
    
> Provide helpful exception message in RequestCycle#urlFor(Class, 
> PageParameters)
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-4892
>                 URL: https://issues.apache.org/jira/browse/WICKET-4892
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.2.0
>            Reporter: Peter Parson
>              Labels: exception, exception-handling, patch
>         Attachments: RequestCycle-urlFor-exception.patch, 
> urlFor-stacktrace.txt
>
>
> When something goes wrong while trying to get the URL for 
> pageClass/pageParameters using RequestCycle, the exception message and its 
> stacktrace is not very helpful in tracking down the component actually 
> causing the problem. (See attached stacktrace that I while rendering a 
> BookmarkablePageLink with a null parameter.)
> I suggest to catch any exceptions thrown by urlFor(IRequestHandler) and 
> throwing a WicketRuntimeException having pageClass and pageparamters in its 
> message. (See attached patch)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to