Error message to be displayed to the user

Dec 22, 2009 at 9:59 PM

The document has been really helpful, thank you.

One area that I have not been able to find much information on, beyond exception handling, is handing error messages. And when I say error message, I mean the message that at the highest level is displayed to the user. I want to store these messages in a central location, but I am not sure the best method of doing so. 

I am currently working on an ASP.NET MVC site, and I could place all the error message in the controllers to be passed to the UI. It seems it would be better if all these error message and their content were in one central location. Maybe an ENUM would be well suited here, but then it has to be customized to be able to handle the string text of the message, so it does not feel natural. 

I am looking for some different input here, and how others may have done this.