Technology exceptions should be converted into business exceptions. Suppose the method returns a technology exception such as RemoteException. Then the interface is tied  to a particular implementation. Instead, the method should return a business exception, such as UnableToObtainIngredients. If more detailed information is required for  debugging purposes, it can be placed as data within the business exception.

Pragmatic Interface Oriented Design.

Leave a Reply

Your email address will not be published. Required fields are marked *