[
https://issues.apache.org/jira/browse/WICKET-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897734#action_12897734
]
Martin Grigorov commented on WICKET-2979:
-----------------------------------------
Catching *Error is never a good thing.
Better use "throw Invalid(State|Argument)Exception" instead of "assert
something".
Disabling assertions in production is also a better idea.
> Handle Error instead of RuntimeException in RequestCycle.step()
> ---------------------------------------------------------------
>
> Key: WICKET-2979
> URL: https://issues.apache.org/jira/browse/WICKET-2979
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4.9
> Reporter: Florian Wunderlich
>
> RequestCycle.java:1346 catches only RuntimeException, thus AssertionError and
> similar are not caught. In case of an AJAX request, the container will
> respond with an error page which the user will never see.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.