public ExceptionInfo(Exception exception, AssertionLibraryFilter filter) { Type = exception.GetType().FullName; DisplayName = filter.DisplayName(exception); Message = exception.Message; StackTrace = filter.FilterStackTrace(exception); InnerException = exception.InnerException == null ? null : new ExceptionInfo(exception.InnerException, filter); }