I want to separate my application messages. The end result would look something like this:
ApiMessages.Error.UserNotFound
ApiMessages.Warning.SomeWarning
ApiMessages.Info.SomeInfo
etc.
I thought it would be a piece of cake but I realize I don't know how to do this... If I had a static class called Error
with multiple static readonly string
properties that would work fine.. but what if I want a collection of such classes that I can easily access and have all my messages sorted out nicely? How could I do this?