t: Wednesday, June 22, 2016 4:52 AM
To: Алексей Богомолов; mono-list@lists.ximian.com
Subject: Re: [Mono-list] Mono does not include full stacktrace while rethrowing
exception
> From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
> boun...@lists.ximian.com] On Behalf Of ??? ??
eu...@microsoft.com>:
>
>> You can try to run mono without inlining: `mono -O=-inline [...]'
>>
>>
>> --
>> *From:* mono-list-boun...@lists.ximian.com <
>> mono-list-boun...@lists.ximian.com> on behalf of Alan <
>> alan.mcgov...@gmail.com>
>> *Sent:*
Thanks! CA2200 exactly explains my confusion. In my real-life case DB
driver re-throws its own exception and we loose the name of a query that
caused error. It brings a lot of problems in production, when there are
many queries in one batch.
For me the question is closed, thanks again.
Edward,
> From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
> boun...@lists.ximian.com] 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
Cc:* Mono List
> *Subject:* Re: [Mono-list] Mono does not include full stacktrace while
> rethrowing exception
>
> This happens on .NET too. This gives a good description of what's
> happening and why.
>
>
> http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOpti
c: Mono List
Subject: Re: [Mono-list] Mono does not include full stacktrace while rethrowing
exception
This happens on .NET too. This gives a good description of what's happening and
why.
http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOptimizationsAndCMethodInliningInReleaseBuildCallStack
This happens on .NET too. This gives a good description of what's happening
and why.
http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOptimizationsAndCMethodInliningInReleaseBuildCallStacks.aspx
Alan
On 21 June 2016 at 09:31, Алексей Богомолов wrote:
> This behavior
This behavior makes difficult to troubleshoot errors, especially in
external libraries. Example code:
public class ExceptionReThrow{
public void Test(){
try
{
M1 ();
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}