That's great, thanks Karl.
I'm not sure which release will happen first
1.2.2, or 2.0 - is this worth merging to the 1.2.x branch?
Sent: Sunday, January 27, 2008 5:56 PM
Subject: Re: [NHibernate-development] NHibernate proxies
losingexceptionstack-trace
I agree that preserving the stack trace is a good thing. I
have applied the patch to the trunk with one modification: The call to set the
private field _remoteStackTraceString is changed to a call to the internal
method Exception.InternalPreserveStackTrace().
Thanks for the patch
Richard.
Karl
On Jan 27, 2008 2:31 AM, Richard Brown <
fluke_fan@hotmail.com> wrote:
Isn't it because code that uses the exceptions
for business logic might need to rely on the original exception
type?
E.g., the client might rely on getting specific
exceptions like ...
try
{
DomainModel.CreateBanana("banana name", "banana
description");
}
catch(DuplicateBananaException
dbne)
{
}
Sent: Saturday, January 26, 2008 11:38 PM
Subject: Re: [NHibernate-development] NHibernate proxies losing
exceptionstack-trace
Is there any reason to go with this approach over simply
throwing a HibernateException() with this as the inner exception?
-------------------------------------------------------------------------
This
SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R)
Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development
mailing list
Nhibernate-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
-------------------------------------------------------------------------
This
SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R)
Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development
mailing
list
Nhibernate-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nhibernate-development