diff src/org/tmatesoft/hg/internal/LineReader.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 507602cb4fb3
children e79cf9a8130b
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/LineReader.java	Tue May 21 20:17:33 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/LineReader.java	Wed May 22 15:52:31 2013 +0200
@@ -26,7 +26,7 @@
 import java.nio.charset.Charset;
 import java.util.Collection;
 
-import org.tmatesoft.hg.repo.HgInvalidFileException;
+import org.tmatesoft.hg.core.HgIOException;
 import org.tmatesoft.hg.util.LogFacility;
 
 /**
@@ -95,7 +95,7 @@
 			return this;
 		}
 
-		public <T> void read(LineConsumer<T> consumer, T paramObj) throws HgInvalidFileException {
+		public <T> void read(LineConsumer<T> consumer, T paramObj) throws HgIOException {
 			BufferedReader statusFileReader = null;
 			try {
 //				consumer.begin(file, paramObj);
@@ -120,7 +120,7 @@
 					}
 				}
 			} catch (IOException ex) {
-				throw new HgInvalidFileException(ex.getMessage(), ex, file);
+				throw new HgIOException(ex.getMessage(), ex, file);
 			} finally {
 				new FileUtils(log).closeQuietly(statusFileReader);
 //				try {