상속: System.Exception
예제 #1
0
 public static void ThrowIfWorkspaceHasPendingChanges(ProcessControllerException exception, string path)
 {
     Contract.Requires(exception != null);
     if (Regex.IsMatch(exception.Message, "^The workspace cannot be updated since there are pending changes."))
     {
         throw new PlasticPendingChangesException(path, exception);
     }
 }
예제 #2
0
        public static void ThrowIfChangeListDoesNotExist(ProcessControllerException exception)
        {
            Contract.Requires(exception != null);

            Exception ex;
            if (ChangeListDoesNotExist(exception.Message, out ex, exception))
            {
                throw ex;
            }
        }