Exemple #1
0
        public static string GetUserSafeMessage(this Exception self)
        {
            IUserSafeException uvex = self as IUserSafeException;

            if (uvex != null)
            {
                return(uvex.UserMessage);
            }
            return(Strings.DefaultUserSafeExceptionMessage);
        }
Exemple #2
0
        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);
            }
        }