Dataportal is local and i'm throwing my custom errors (derived from exception class).. But when i'm trying to catch the errors i'm not able to do that..
When seeing in debugger my original exception is coming in the 4th layer i.e.
DataPortalException.BusinessException.BusinessException.BusinessException
I'm trying to use this code but still not able to retreive error as it is giving me error that object reference not set..
catch
(Csla.DataPortalException
ex)
{ Csla.
DataPortalException be = ex.BusinessException as Csla.DataPortalException
;
Csla.
DataPortalException be2 = be.BusinessException as Csla.DataPortalException
;
Csla.
DataPortalException be3 = be2.BusinessException as Csla.DataPortalException
;
Copyright (c) Marimer LLC