diff src/org/tmatesoft/hg/core/HgManifestHandler.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 31a89587eb04
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgManifestHandler.java	Tue May 21 20:17:33 2013 +0200
+++ b/src/org/tmatesoft/hg/core/HgManifestHandler.java	Wed May 22 15:52:31 2013 +0200
@@ -17,6 +17,7 @@
 package org.tmatesoft.hg.core;
 
 import org.tmatesoft.hg.internal.Callback;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 import org.tmatesoft.hg.util.Path;
 
 /**
@@ -33,8 +34,9 @@
 	 * 
 	 * @param manifestRevision unique identifier of the manifest revision
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
+	 * @throws HgRuntimeException propagates library issues. <em>Runtime exception</em>
 	 */
-	void begin(Nodeid manifestRevision) throws HgCallbackTargetException;
+	void begin(Nodeid manifestRevision) throws HgCallbackTargetException, HgRuntimeException;
 
 	/**
 	 * If walker is configured to spit out directories, indicates files from specified directories are about to be reported.
@@ -42,16 +44,18 @@
 	 * 
 	 * @param path directory known in the manifest
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
+	 * @throws HgRuntimeException propagates library issues. <em>Runtime exception</em>
 	 */
-	void dir(Path path) throws HgCallbackTargetException; 
+	void dir(Path path) throws HgCallbackTargetException, HgRuntimeException; 
 
 	/**
 	 * Reports a file revision entry in the manifest
 	 * 
 	 * @param fileRevision description of the file revision
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
+	 * @throws HgRuntimeException propagates library issues. <em>Runtime exception</em>
 	 */
-	void file(HgFileRevision fileRevision) throws HgCallbackTargetException;
+	void file(HgFileRevision fileRevision) throws HgCallbackTargetException, HgRuntimeException;
 
 	/**
 	 * Indicates all files from the manifest revision have been reported.
@@ -59,6 +63,7 @@
 	 * 
 	 * @param manifestRevision unique identifier of the manifest revision 
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
+	 * @throws HgRuntimeException propagates library issues. <em>Runtime exception</em>
 	 */
-	void end(Nodeid manifestRevision) throws HgCallbackTargetException;
+	void end(Nodeid manifestRevision) throws HgCallbackTargetException, HgRuntimeException;
 }
\ No newline at end of file