diff src/org/tmatesoft/hg/repo/HgInvalidFileException.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 95c2f43008bd
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInvalidFileException.java	Tue May 21 20:17:33 2013 +0200
+++ b/src/org/tmatesoft/hg/repo/HgInvalidFileException.java	Wed May 22 15:52:31 2013 +0200
@@ -19,6 +19,8 @@
 import java.io.File;
 import java.io.IOException;
 
+import org.tmatesoft.hg.util.Path;
+
 /**
  * Thrown when there are troubles working with local file. Most likely (but not necessarily) wraps IOException. Might be 
  * perceived as specialized IOException with optional File and other repository information.
@@ -59,6 +61,12 @@
 		details.setFile(file);
 		return this;
 	}
+	
+	@Override
+	public HgInvalidFileException setFileName(Path name) {
+		super.setFileName(name);
+		return this;
+	}
 
 	/**
 	 * @return file object that causes troubles, or <code>null</code> if specific file is unknown