alielie
2026-09-10 f3889f2d36c50cf99468594854def9b7ed069fb5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
 
namespace OpenTap
{
    /// <summary>
    /// Used to rethrow, adding more exception info but without generating a lot of extra stack lines.
    /// </summary>
    class ExceptionCustomStackTrace : Exception
    {
        public ExceptionCustomStackTrace(string message, string stackTrace, Exception innerException = null)
            : base(message, innerException)
        {
            StackTrace = stackTrace;
        }
 
        public override string StackTrace { get; }
    }
}