ExtractFormattedStackTrace() public static method

public static ExtractFormattedStackTrace ( StackTrace trace, System.StringBuilder sb, StackTrace skip = null ) : void
trace StackTrace
sb System.StringBuilder
skip StackTrace
return void
示例#1
0
 public LuaException(string msg, Exception e = null, int skip = 1) : base(msg)
 {
     if (e != null)
     {
         if (e is LuaException)
         {
             this._stack = e.get_StackTrace();
         }
         else
         {
             StackTrace    stackTrace    = new StackTrace(e, true);
             StringBuilder stringBuilder = new StringBuilder();
             LuaException.ExtractFormattedStackTrace(stackTrace, stringBuilder, null);
             StackTrace trace = new StackTrace(skip, true);
             LuaException.ExtractFormattedStackTrace(trace, stringBuilder, stackTrace);
             this._stack = stringBuilder.ToString();
         }
     }
     else
     {
         StackTrace    trace2         = new StackTrace(skip, true);
         StringBuilder stringBuilder2 = new StringBuilder();
         LuaException.ExtractFormattedStackTrace(trace2, stringBuilder2, null);
         this._stack = stringBuilder2.ToString();
     }
 }