This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes The choice of extracting commonly used error messages into a utility class. Is this advisable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "The choice of extracting commonly used error messages into a utility class. Is this advisable?" Watch "The choice of extracting commonly used error messages into a utility class. Is this advisable?" New topic
Author

The choice of extracting commonly used error messages into a utility class. Is this advisable?

Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

In short i want to know if extracting a message like "an IO exception occured" and putting it into an utility class is advisable?
Even though the exception is common to several places it is not really going to improve performance because it is after al an exceptional condition which should rarely occur.

Another question is i see Andrew went the route of taking all the Strings in config.java and declared them at the beginning of the class stating that it allowed for i8n of the Strings. I wish to use i8n in my application but am unsure on how much I should allow to be i8n? Should I code all button,error,label,title,etc texts in a way that they can be internationalized?


SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The choice of extracting commonly used error messages into a utility class. Is this advisable?
 
Similar Threads
[struts2] [sitemesh] [i8N] its not decorate anymore
Utility Classes in EJB
I8N for all data
[Strust2] [I8N] result action message.
A bit confused on my choice of a Database Eception...