public static string GetUserSafeMessage(this Exception self) { IUserSafeException uvex = self as IUserSafeException; if (uvex != null) { return(uvex.UserMessage); } return(Strings.DefaultUserSafeExceptionMessage); }
public static void Log(this Exception self) { IUserSafeException uvex = self as IUserSafeException; if (uvex != null) { // Log the exception that the User-Visible wrapper marked as to-be-logged QuietLog.LogHandledException(uvex.LoggedException); } else { QuietLog.LogHandledException(self); } }