开发者

customize grails exception message

when I specify empty on a date field (which has time part filled in, so not null), the following message is displayed in the UI

Failed to convert property value of type java.lang.String to required type org.joda.time.DateTime for pr开发者_运维技巧operty responseRequiredDate; nested exception is java.lang.IllegalArgumentException: Invalid format: "structT00:00:00"

is there a way to customize this message. Or do one need custom exception handling as described here link text

thanks.


That is an exception. AFAIK you can't customize it other than by catching it and outputting what you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜