System.Runtime.ExceptionServices.ExceptionStackTrace static class ExceptionStackTrace Documentation Code public static void AddCurrentStack(Exception exception)