Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/DataSerializer.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 | 7c0d2ce340b8 |
children | 14dac192aa26 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/DataSerializer.java Tue May 21 20:17:33 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/DataSerializer.java Wed May 22 15:52:31 2013 +0200 @@ -19,6 +19,7 @@ import java.io.ByteArrayOutputStream; import org.tmatesoft.hg.core.HgIOException; +import org.tmatesoft.hg.repo.HgRuntimeException; /** * Serialization friend of {@link DataAccess} @@ -78,13 +79,13 @@ * Invoked once for a single write operation, * although the source itself may get serialized several times */ - public void serialize(DataSerializer out) throws HgIOException; + public void serialize(DataSerializer out) throws HgIOException, HgRuntimeException; /** * Hint of data length it would like to writes * @return -1 if can't answer */ - public int serializeLength(); + public int serializeLength() throws HgRuntimeException; } public static class ByteArrayDataSource implements DataSource {