comparison src/org/tmatesoft/hg/core/HgInvalidControlFileException.java @ 396:0ae53c32ecef

Straighten out exceptions thrown when file access failed - three is too much
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 23 Feb 2012 01:06:24 +0100
parents f52ca9530774
children
comparison
equal deleted inserted replaced
395:4732fffff58a 396:0ae53c32ecef
17 package org.tmatesoft.hg.core; 17 package org.tmatesoft.hg.core;
18 18
19 import java.io.File; 19 import java.io.File;
20 20
21 import org.tmatesoft.hg.internal.Experimental; 21 import org.tmatesoft.hg.internal.Experimental;
22 import org.tmatesoft.hg.util.Path;
22 23
23 /** 24 /**
24 * WORK IN PROGRESS 25 * WORK IN PROGRESS
25 * 26 *
26 * Subclass of {@link HgInvalidFileException} to indicate failure to deal with one of <b>Mercurial</b> control files 27 * Subclass of {@link HgInvalidFileException} to indicate failure to deal with one of <b>Mercurial</b> control files
27 * (most likely those under .hg/, but also those residing in the repository, with special meaning to the Mercurial, like .hgtags or .hgignore) 28 * (most likely those under .hg/, but also those residing in the repository, with special meaning to the Mercurial, like .hgtags or .hgignore)
29 *
30 * XXX Perhaps, HgInvalidRevlogException?
28 * @author Artem Tikhomirov 31 * @author Artem Tikhomirov
29 * @author TMate Software Ltd. 32 * @author TMate Software Ltd.
30 */ 33 */
31 @SuppressWarnings("serial") 34 @SuppressWarnings("serial")
32 @Experimental(reason="WORK IN PROGRESS. Name is likely to change") 35 @Experimental(reason="WORK IN PROGRESS. Name is likely to change")
42 return this; 45 return this;
43 } 46 }
44 47
45 @Override 48 @Override
46 public HgInvalidControlFileException setRevision(Nodeid r) { 49 public HgInvalidControlFileException setRevision(Nodeid r) {
47 super.setRevision(r); 50 return (HgInvalidControlFileException) super.setRevision(r);
48 return this;
49 } 51 }
50 52
51 @Override 53 @Override
52 public HgException setRevisionIndex(int rev) { 54 public HgInvalidControlFileException setRevisionIndex(int rev) {
53 super.setRevisionIndex(rev); 55 return (HgInvalidControlFileException) super.setRevisionIndex(rev);
54 return this; 56 }
57
58 @Override
59 public HgInvalidControlFileException setFileName(Path name) {
60 return (HgInvalidControlFileException) super.setFileName(name);
55 } 61 }
56 } 62 }