internal void SaveTraceToException(Exception exception) {
     if (exception.GetData(typeof(InterpretedFrameInfo)) == null) {
         exception.SetData(typeof(InterpretedFrameInfo), new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray());
     }
 }
 public static InterpretedFrameInfo[] GetExceptionStackTrace(Exception exception) {
     return exception.GetData(typeof(InterpretedFrameInfo)) as InterpretedFrameInfo[];
 }
Beispiel #3
0
 internal static RubyExceptionData TryGetInstance(Exception/*!*/ e) {
     return e.GetData(_DataKey) as RubyExceptionData;
 }