开发者

How to do Exception Handling in Wicket

开发者 https://www.devze.com 2023-01-03 09:40 出处:网络
I\'ve read that wicket can\'t throw Checked exception. how to deal with this? What is a good way to implement exception handling in Wicket spri开发者_JAVA百科ng based application?

I've read that wicket can't throw Checked exception. how to deal with this? What is a good way to implement exception handling in Wicket spri开发者_JAVA百科ng based application?

Mac


What do you mean, "Wicket can't throw". [citation needed] :)

Perhaps you read somewhere that wicket will not pass an exception to the servlet container in the default configuration?

I usually wrap specific components' methods with a try and change the page appropriately in catch, i.e. telling the user that something went wrong.

Update: And also, you have the error(), warn() etc. in every Component which works with Feedback stuff. See here.

0

精彩评论

暂无评论...
验证码 换一张
取 消