In its simplest form, a notification can just be a collection of strings which are error messages that the domain generates while it’s doing its work. With each validation that the domain layer makes, each failure results in an error added to the notification. However it makes sense to give the notification a more explicit interface than this. A notification object will typically have methods for adding errors that use error codes rather than strings, and convenience methods to tell if the notification has any errors present.
- RT @brokenbottleboy: Daily Mail at Galilee: “Our reporter wasn’t even one of the 5,000 but this Jewish bloke gave him bread and fish withou… 13 hours ago
- RT @DrEoinCl: Retweet if you would be willing to pay 1% extra in your Tax to fund a total and utter renationalisation of your NHS. 15 hours ago
- Coffee at Cafe Nero as usual but going to try swim at local baths next. They have seating for the audience so they must be good! 15 hours ago
- RT @BrookesTimes: My cartoon #GoodFriday @TheTimes: #Cameron does God....do we really need to know that? http://t.co/H89llA7zkQ 15 hours ago
- The mock up of the 1km high building looks wondrous. How long before an elevator to space is built? 16 hours ago