private void DisplayCurrentException() { try { if (ActiveFrame.IsILFrame()) { ValueWrapper exceptionObject = NuGenDebugEventHandler.Instance.EventObjects.Thread.GetCurrentException(); if (exceptionObject != null) { NuGenExceptionValueRefresher valueRefresher = new NuGenExceptionValueRefresher(NuGenConstants.CurrentExceptionName, NuGenDebugEventHandler.Instance.EventObjects.Thread); ShowObject(valueRefresher); } } } catch (Exception exception) { NuGenUIHandler.Instance.ShowException(exception); } }