comparison src/org/tmatesoft/hg/core/HgDataStreamException.java @ 275:6d1804fe0ed7

Issue 10: Report file content length with respect of metadata. Respect dirstate parents for WC's status. Exceptions to keep useful attributes of the location
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 25 Aug 2011 21:35:03 +0200
parents 41a778e3fd31
children 189dc6dc1c3e
comparison
equal deleted inserted replaced
274:9fb50c04f03c 275:6d1804fe0ed7
25 * @author Artem Tikhomirov 25 * @author Artem Tikhomirov
26 * @author TMate Software Ltd. 26 * @author TMate Software Ltd.
27 */ 27 */
28 @SuppressWarnings("serial") 28 @SuppressWarnings("serial")
29 public class HgDataStreamException extends HgException { 29 public class HgDataStreamException extends HgException {
30 private final Path fname;
31 30
32 public HgDataStreamException(Path file, String message, Throwable cause) { 31 public HgDataStreamException(Path file, String message, Throwable cause) {
33 super(message, cause); 32 super(message, cause);
34 fname = file; 33 setFileName(file);
35 } 34 }
36 35
37 public HgDataStreamException(Path file, Throwable cause) { 36 public HgDataStreamException(Path file, Throwable cause) {
38 super(cause); 37 super(cause);
39 fname = file; 38 setFileName(file);
40 } 39 }
41 40
42 public Path getFileName() { 41 @Override
43 return fname; 42 public HgDataStreamException setRevision(Nodeid r) {
43 return (HgDataStreamException) super.setRevision(r);
44 }
45
46 @Override
47 public HgDataStreamException setRevisionNumber(int rev) {
48 return (HgDataStreamException) super.setRevisionNumber(rev);
49 }
50 @Override
51 public HgDataStreamException setFileName(Path name) {
52 return (HgDataStreamException) super.setFileName(name);
44 } 53 }
45 } 54 }