From ee6636df2d107a8aafd170d3dfb2ec6176e50ca8 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Sat, 5 Oct 2019 09:16:00 +0200 Subject: [PATCH] [System.Private.CoreLib] Fixes build Commit migrated from https://github.com/mono/mono/commit/fce0e64de9a96694d99f14069c7655ad429af01b --- .../netcore/System.Private.CoreLib/src/System/Exception.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Exception.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Exception.cs index 34b4e5d..9f9d504 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Exception.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Exception.cs @@ -92,6 +92,16 @@ namespace System _stackTraceString = null; } + [StackTraceHidden] + internal void SetCurrentStackTrace () + { + // Check to see if the exception already has a stack set in it. + if (_stackTraceString != null) + ThrowHelper.ThrowInvalidOperationException(); + + // TODO: Store the current stack trace into this exception + } + string? CreateSourceName () { var st = new StackTrace (this, fNeedFileInfo: false); -- 2.7.4