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:
- modify on error message later without having update software
- easily add languages
- make error message wiki users can modify page , include workarounds etc.
Comments
Post a Comment