Skip to content
SimplyMe
Go back

Exception

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.


Share this post:

Previous Post
Avast 6
Next Post
Ganti lagi...