public string GenerateErrorState() { var last = _elements.LastOrDefault(); return(last?.ToString() ?? string.Empty); }