public void UIError(Exception e, [CallerFilePath] string path = null, [CallerLineNumber] int lineNumber = 0, [CallerMemberName] string name = null) { string displaypath = path.Substring(path.IndexOf("Chat")); string message = "Error from " + displaypath + " in function " + name + " on line " + lineNumber + ": " + e.Message + ". Please send to http://feedback.lvl3.org !"; if (Notifications != null) { Notifications.CreateError(ErrorPolicyType.Informative, "All", message); } }