public LogException(Exception ex) : base() { machineName = Environment.MachineName; operatingSystem = Environment.OSVersion.ToString(); version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); this.callerVersion = ""; message = ex.Message; source = ex.Source; stackTrace = ex.StackTrace; innerException = new LogExceptionChild(ex.InnerException); }
internal LogExceptionChild(Exception ex) { if (ex != null) { Exception e = ex; do { message = ex.Message; source = ex.Source; stackTrace = ex.StackTrace; innerException = new LogExceptionChild(e.InnerException); e = e.InnerException; } while (e != null); } }