Example #1
0
        private static void Error(State state, string description, string args, WindowsErrorCode error, ref bool pass, bool noExtension)
        {
            state.AddReport(description);
            var result = InvokeFileMetaAssoc(state, args, true, noExtension);

            if (result != (int)error)
            {
                state.AddReport(String.Format("FileMetaAssoc returned {0} instead of the expected error code {1}", result, error));
                pass = false;
            }
        }
 public WindowsException(WindowsErrorCode errorCode, string errorMsg) : base(errorMsg)
 {
     ErrorCode = errorCode;
 }
 public WindowsException(WindowsErrorCode errorCode) : this(errorCode, null)
 {
 }