.net configurable business error messages

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-06-11T04:24:29Z Indexed on 2010/06/11 4:32 UTC
Read the original article Hit count: 161

Hi all,

I need to implement some kind of solution such that in our business logic layer when certain conditions are met an error message is returned.

That error message should be configurable either in a file or table that can be edited at run time if needed.

I've seen it done before a few ways and it always ends up something like "This error message is {0}" and then when the dev goes the use the message they dont neccesarily know how many (if any) parameters the message needs.

Just hoping to leverage off something that may have already been done, I dont think there is a provider or anything already in the .net framework.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about architecture