Notification pattern
Pierre Greborio has an example based on Martin Fowlers pattern. I like it.
When I have to propagate errors from the domain object to the presentation I usually use exceptions. All errors bubble from bottom to up and then are ready to be published to the UI (managing the catch section). The Notification pattern can be a good alternative. Consider a notification class which contains a list of possible errors (for simplicity I don’t consider information messages):
Write a comment