Csla.DataPortalException.BusinessException in 5.3.0 #1763
-
We have some tests which are failing now, and I tracked it down to the fact that Csla.DataPortalException.BusinessException is returning a Csla.Reflection.CallMethodException, which has its inner exception as the one actually thrown from within the Child_Update exception. Is this change intentional? Previously it was the exception directly throw from within the Child_Update method. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Interesting. Not intentional. The way the data portal invokes methods is entirely different in version 5, because we added the ability to inject parameter values and support for the data portal operation attributes ( The Can you provide the entire stack trace (exception tree) from your test? |
Beta Was this translation helpful? Give feedback.
-
@ajohnstone-ks does this look like a workable solution to you? |
Beta Was this translation helpful? Give feedback.
Interesting. Not intentional.
The way the data portal invokes methods is entirely different in version 5, because we added the ability to inject parameter values and support for the data portal operation attributes (
Create
,Fetch
,Update
, etc.).The
BusinessException
method tries to strip outDataPortalException
andCallMethodException
exceptions to find the underlying exception. If you look at the code it is pretty simplistic, and perhaps there's some intermediate exception in the way?Can you provide the entire stack trace (exception tree) from your test?