Is there any example code that demonstrates how to allow exceptions to occur in an Encapsulated Invoke model? When an database exception occurs in my DataPortal_XYZ code, the code stops. According to page 46 of the Data Portal book, it says that the exception is returned back to the client. What do I need to do to allow the exception to occur and return it back to the client. At what point does the client need to check for exceptions? A clear and descriptive example would be helpful.
That should happen automatically, but be aware that the factory method will throw a DataPortalException, and your exception will be in its BusinessException property.
Hi
Is there any example code that demonstrates how to allow exceptions to occur in an Encapsulated Invoke model? When an database exception occurs in my DataPortal_XYZ code, the code stops. According to page 46 of the Data Portal book, it says that the exception is returned back to the client. What do I need to do to allow the exception to occur and return it back to the client. At what point does the client need to check for exceptions? A clear and descriptive example would be helpful.