Geeks With Blogs

News


Mike Nichols - SonOfNun Technology If I were the captain on a big steamboat...

Sergio Bossa has a nifty proposition for handling Specification failures during the course of operations in the Domain layer and propogating those messages up the layers thru the Service layer at http://sbtourist.blogspot.com/2006/03/notification-strategy-for-business.html.

The basic idea is to collect Specification errors into a collection within a Notification inside a custom exception. I had considered this, but was frankly trying to avoid throwing exceptions for these kinds of things. But since you can only return one object (without resorting to out parameters and so on), program flow kind of requires this kind of interruption to handle in upper layers.

 

Posted on Wednesday, September 6, 2006 5:43 AM OOP, Patterns, Architecture , Domain Driven Design (DDD) | Back to top


Comments on this post: Messaging Pattern Encapsulating Exceptions From Domain

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Mike Nichols | Powered by: GeeksWithBlogs.net