diff src/org/tmatesoft/hg/core/HgStatus.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 f052f40839ec
children 528b6780a8bd
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgStatus.java	Thu Dec 01 03:05:28 2011 +0100
+++ b/src/org/tmatesoft/hg/core/HgStatus.java	Thu Dec 01 05:21:40 2011 +0100
@@ -71,7 +71,7 @@
 	/**
 	 * @return <code>null</code> if author for the change can't be deduced (e.g. for clean files it's senseless)
 	 */
-	public String getModificationAuthor() {
+	public String getModificationAuthor() throws HgInvalidControlFileException {
 		RawChangeset cset = logHelper.findLatestChangeWith(path);
 		if (cset == null) {
 			if (kind == Kind.Modified || kind == Kind.Added || kind == Kind.Removed /*&& RightBoundary is TIP*/) {
@@ -84,7 +84,7 @@
 		return null;
 	}
 
-	public Date getModificationDate() {
+	public Date getModificationDate() throws HgInvalidControlFileException {
 		RawChangeset cset = logHelper.findLatestChangeWith(path);
 		if (cset == null) {
 			File localFile = new File(logHelper.getRepo().getWorkingDir(), path.toString());