Example #1
0
        public static void ResetError()
        {
            Site.RuntimeError     = false;
            Site.RuntimeException = null;

            Site.InternalError       = false;
            Site.InternalVSException = null;
        }
Example #2
0
        private static void CreateInternalVSException(string message)
        {
            string source     = "VSMacros.ExecutionEngine";
            string stackTrace = string.Empty;
            string targetSite = string.Empty;

            Site.InternalVSException = new InternalVSException(message, source, stackTrace, targetSite);
            Site.InternalError       = true;
        }