diff src/org/tmatesoft/hg/internal/RevlogCompressor.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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogCompressor.java	Tue May 21 20:17:33 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/RevlogCompressor.java	Wed May 22 15:52:31 2013 +0200
@@ -20,6 +20,7 @@
 
 import org.tmatesoft.hg.core.HgIOException;
 import org.tmatesoft.hg.core.SessionContext;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 import org.tmatesoft.hg.util.LogFacility.Severity;
 
 /**
@@ -44,7 +45,7 @@
 	}
 	
 	// out stream is not closed!
-	public int writeCompressedData(DataSerializer out) throws HgIOException {
+	public int writeCompressedData(DataSerializer out) throws HgIOException, HgRuntimeException {
 		zip.reset();
 		DeflaterDataSerializer dds = new DeflaterDataSerializer(out, zip, sourceData.serializeLength());
 		sourceData.serialize(dds);
@@ -52,7 +53,7 @@
 		return zip.getTotalOut();
 	}
 
-	public int getCompressedLength() {
+	public int getCompressedLength() throws HgRuntimeException {
 		if (compressedLen != -1) {
 			return compressedLen;
 		}