BusinessException returns DataPortalException
BusinessException returns DataPortalExceptionOld forum URL: forums.lhotka.net/forums/t/5858.aspx
rasupit posted on Sunday, November 23, 2008I found that exception thrown from child object may not shown in BusinessException. This issue may occur when child data access code is called through automatic child data portal invoker DataPortal.UpdateChild.
With this scenario, we may have nested DataPortalException which make accessing the actual exception would not be as easy as InnerException.InnerException.
The fix I think is to walk in the exception tree for the last DataPortalException > CallMethodException occurance.
Copyright (c) Marimer LLC