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); } }
public static void ThrowIfChangeListDoesNotExist(ProcessControllerException exception) { Contract.Requires(exception != null); Exception ex; if (ChangeListDoesNotExist(exception.Message, out ex, exception)) { throw ex; } }