Should I use error codes for exception handling in a multi-language app? -


in exception handling, in multi-language app, bad store english in code (strings in classes)? better use error codes , document these? saw best practise somewhere code should not have strings exception messages etc (although perhaps can refactored out , converted other languages @ will).

thanks

why don't place urls instead of error codes. in form of: http://myapp.com/help/error/434hb4b3.html&language=english

this way free to:

  1. modify on error message later without having update software
  2. easily add languages
  3. make error message wiki users can modify page , include workarounds etc.

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -