This is a mirror of official site: http://jasper-net.blogspot.com/

Self-localizing Error Messages

| Thursday, June 24, 2010
Yesterday I ran into a problem trying to figure out where to localize error messages.

We are using a MVP (Model View Presenter) pattern for our web based application.  I was working on refactoring some code to move the business logic which handled the parsing of a file out of the view layer and down into the model.

When my file parsing class encounters errors, it needs to be able to send those errors back up to the view to be displayed to the user.

Since there could be multiple errors and we don’t necessarily want to stop parsing the file if we hit an error, we need a way to batch up those errors to be sent up to the presenter to give to the view.

Read more: Making the Complex Simple

Posted via email from .NET Info

0 comments: