Handle DataPortal Fetch Exceptions

Handle DataPortal Fetch Exceptions

Old forum URL: forums.lhotka.net/forums/t/6403.aspx


xAvailx posted on Wednesday, February 11, 2009

CSLA 3.6

Hello, I have a base class that inherits BusinessBase. This class is then inherited by all my other businessbase type classes.

I want to handle/process an exception when one is thrown inside the dataportal fetch.

For the Save, I can override the save and add my code there, but can't seem to get it to work with fetch.

I see there is an onDataPortalException event, but not sure if this is the correct place to use.

By exception handling I mean I will be raising a more specific exception or letting it bubble up.

Any help is appreciated, thx.

Copyright (c) Marimer LLC