Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgCatCommand.java @ 354:5f9073eabf06
Propagate errors with exceptions up to a end client
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 01 Dec 2011 05:21:40 +0100 |
parents | d68dcb3b5f49 |
children | 91d75e1bac9f |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCatCommand.java Thu Dec 01 03:05:28 2011 +0100 +++ b/src/org/tmatesoft/hg/core/HgCatCommand.java Thu Dec 01 05:21:40 2011 +0100 @@ -136,7 +136,7 @@ * @throws HgDataStreamException * @throws IllegalArgumentException when command arguments are incomplete or wrong */ - public void execute(ByteChannel sink) throws HgDataStreamException, CancelledException { + public void execute(ByteChannel sink) throws HgDataStreamException, HgInvalidControlFileException, CancelledException { if (localRevision == BAD_REVISION && revision == null && cset == null) { throw new IllegalArgumentException("File revision, corresponing local number, or a changset nodeid shall be specified"); }