private static void HandleAppVerifierException(AppVerifierException ex)
        {
            // This method is specifically written to maximize the chance of
            // useful information being on the stack as a local, where it's more
            // easily observed by the debugger.

            AppVerifierErrorCode errorCode = ex.ErrorCode;
            string fullMessage             = ex.Message;

            DefaultAppVerifierBehavior(ex);

            GC.KeepAlive(errorCode);
            GC.KeepAlive(fullMessage);
            GC.KeepAlive(ex);
        }
        public AppVerifierException(AppVerifierErrorCode errorCode, string message)
            : base(message) {

            _errorCode = errorCode;
        }
 internal static string GetLocalizedDescriptionStringForError(AppVerifierErrorCode errorCode)
 {
     return(FormatErrorString(_errorStringMappings[errorCode]));
 }
示例#4
0
 public AppVerifierException(AppVerifierErrorCode errorCode, string message)
     : base(message)
 {
     _errorCode = errorCode;
 }