diff src/org/tmatesoft/hg/core/HgFileInformer.java @ 354:5f9073eabf06

Propagate errors with exceptions up to a end client
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 01 Dec 2011 05:21:40 +0100
parents 981f9f50bb6c
children 8099939af5fa
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileInformer.java	Thu Dec 01 03:05:28 2011 +0100
+++ b/src/org/tmatesoft/hg/core/HgFileInformer.java	Thu Dec 01 05:21:40 2011 +0100
@@ -36,6 +36,8 @@
  *   }
  * </pre></code>
  *
+ * FIXME need better name. It's more about manifest of specific changeset, rather than informing (about) files
+ * 
  * @author Artem Tikhomirov
  * @author TMate Software Ltd.
  */
@@ -87,7 +89,7 @@
 	 * @return <code>true</code> if file is known at the selected changeset.
 	 * @throws IllegalArgumentException if {@link #changeset(Nodeid)} not specified or file argument is bad.
 	 */
-	public boolean check(Path file) { // XXX IStatus instead of boolean?
+	public boolean check(Path file) throws HgInvalidControlFileException { // XXX IStatus instead of boolean? If status, shall it handle exceptions as well?
 		fileRevision = null;
 		checked = false;
 		renamed = false;