Re: Mono does not include full stacktrace while rethrowing exception

"Edward Ned Harvey (mono)" <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <BN3PR0801MB1154BAFA218124FB8312A726FA2C0@BN3PR0801MB1154.namprd08.prod.outlook.com>
> From: [email protected] [mailto:mono-list-
> [email protected]] On Behalf Of ??????? ?????????
> 

First, just to be sure you know, you *almost* should never catch and rethrow, because you're not adding new information. If you want to add new information, generally you should throw a new exception and include an InnerException. Here are some examples of situations you would want to catch and rethrow:
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx

And just to confirm you're right, you *should* expect the stack to be preserved, if you throw without any arguments.
https://msdn.microsoft.com/en-us/library/ms182363.aspx

I've confirmed the behavior you reported. In a debug build, on windows, and on mono, the behavior is not the same on .NET and on mono. It should be.

I think this is probably an actual bug and I'll go report it.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.