Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgCloneCommand.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 | a415fe296a50 |
children | fc8bc2f1edbe |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCloneCommand.java Wed Sep 14 04:41:57 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgCloneCommand.java Fri Sep 16 05:35:32 2011 +0200 @@ -71,9 +71,9 @@ return this; } - public HgRepository execute() throws HgException, CancelledException { + public HgRepository execute() throws HgBadArgumentException, HgRemoteConnectionException, HgInvalidFileException, CancelledException { if (destination == null) { - throw new HgBadArgumentException("Destination not set", null); + throw new IllegalArgumentException("Destination not set", null); } if (srcRepo == null || srcRepo.isInvalid()) { throw new HgBadArgumentException("Bad source repository", null); @@ -101,7 +101,7 @@ completeChanges.inspectAll(mate); mate.complete(); } catch (IOException ex) { - throw new HgException(ex); + throw new HgInvalidFileException(getClass().getName(), ex); } finally { completeChanges.unlink(); }