Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgIncomingCommand.java @ 295:981f9f50bb6c
Issue 11: Error log facility. SessionContext to share common facilities
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 16 Sep 2011 05:35:32 +0200 |
parents | 6d1804fe0ed7 |
children | d68dcb3b5f49 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgIncomingCommand.java Wed Sep 14 04:41:57 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgIncomingCommand.java Fri Sep 16 05:35:32 2011 +0200 @@ -16,7 +16,6 @@ */ package org.tmatesoft.hg.core; -import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; @@ -100,10 +99,10 @@ * Reported changes are from any branch (limits set by {@link #branch(String)} are not taken into account. * * @return list of nodes present at remote and missing locally - * @throws HgException + * @throws HgRemoteConnectionException when failed to communicate with remote repository * @throws CancelledException */ - public List<Nodeid> executeLite() throws HgException, CancelledException { + public List<Nodeid> executeLite() throws HgRemoteConnectionException, CancelledException { LinkedHashSet<Nodeid> result = new LinkedHashSet<Nodeid>(); RepositoryComparator repoCompare = getComparator(); for (BranchChain bc : getMissingBranches()) { @@ -121,10 +120,12 @@ /** * Full information about incoming changes * - * @throws HgException + * @throws HgRemoteConnectionException when failed to communicate with remote repository + * @throws HgInvalidFileException to indicate failure working with locally downloaded changes in a bundle file + * @throws HgCallbackTargetException to re-throw exception from the handler * @throws CancelledException */ - public void executeFull(final HgChangesetHandler handler) throws HgException/*FIXME specific type*/, HgException, CancelledException { + public void executeFull(final HgChangesetHandler handler) throws HgRemoteConnectionException, HgInvalidFileException, HgCallbackTargetException, CancelledException { if (handler == null) { throw new IllegalArgumentException("Delegate can't be null"); } @@ -155,8 +156,6 @@ } }); transformer.checkFailure(); - } catch (IOException ex) { - throw new HgException(ex); } finally { ps.done(); }