diff src/org/tmatesoft/hg/util/FileIterator.java @ 350:33eaed1ad130

Allow FileIterator report any errors from the underlaying file system up to the client
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 29 Nov 2011 03:46:17 +0100
parents ed6b74a58c66
children 7f27122011c3
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/FileIterator.java	Thu Nov 24 04:33:42 2011 +0100
+++ b/src/org/tmatesoft/hg/util/FileIterator.java	Tue Nov 29 03:46:17 2011 +0100
@@ -16,6 +16,8 @@
  */
 package org.tmatesoft.hg.util;
 
+import java.io.IOException;
+
 import org.tmatesoft.hg.internal.Experimental;
 
 /**
@@ -29,17 +31,17 @@
 	/**
 	 * Brings iterator into initial state to facilitate new use.
 	 */
-	void reset();
+	void reset() throws IOException;
 
 	/**
 	 * @return whether can shift to next element
 	 */
-	boolean hasNext();
+	boolean hasNext() throws IOException;
 
 	/**
 	 * Shift to next element
 	 */
-	void next();
+	void next() throws IOException;
 
 	/**
 	 * @return repository-local path to the current element.