Mercurial > jhg
diff src/org/tmatesoft/hg/internal/WorkingCopyContent.java @ 628:6526d8adbc0f
Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 22 May 2013 15:52:31 +0200 |
parents | 4e6179bde4fc |
children |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/WorkingCopyContent.java Tue May 21 20:17:33 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/WorkingCopyContent.java Wed May 22 15:52:31 2013 +0200 @@ -26,6 +26,7 @@ import org.tmatesoft.hg.repo.HgInvalidFileException; import org.tmatesoft.hg.repo.HgInvalidStateException; import org.tmatesoft.hg.repo.HgRepository; +import org.tmatesoft.hg.repo.HgRuntimeException; import org.tmatesoft.hg.util.ByteChannel; import org.tmatesoft.hg.util.CancelledException; @@ -47,7 +48,7 @@ } } - public void serialize(final DataSerializer out) throws HgIOException { + public void serialize(final DataSerializer out) throws HgIOException, HgRuntimeException { final HgIOException failure[] = new HgIOException[1]; try { // TODO #workingCopy API is very limiting, CancelledException is inconvenient, @@ -80,7 +81,7 @@ } } - public int serializeLength() { + public int serializeLength() throws HgRuntimeException { return file.getLength(HgRepository.WORKING_COPY); } } \ No newline at end of file