Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] Localized Messages in Exceptions

Hi,
 
on externalizing strings in EGit (see also http://egit.eclipse.org/r/#change,332) I got some doubts how to deal with translatable texts in exceptions:
 
Is it ok that objects of the same exception type sometimes provide localized messages and sometimes not?
 
Example:
 
throw new IllegalStateException("Error occurred during remote repo listing, no refs available")
 
This message could be localized, but in most cases IllegalStateException contains a hard coded technical string as message.
 
The same question arises for JGit exceptions like TransportException.  Does TransportException.getMessage always return a localized message?
 
 
 
 

Back to the top