How do I localize an exception's text message?

John Zukowski

In your exception subclass, override the getLocalizedMessage(Locale locale) method. You would then need to fetch the locale-specific message from the appropriate ResourceBundle.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact