comparison src/org/tmatesoft/hg/core/HgInvalidFileException.java @ 391:856517285256

Provide more details about exception
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 Feb 2012 03:32:52 +0100
parents 981f9f50bb6c
children f52ca9530774
comparison
equal deleted inserted replaced
390:6952d9ce97f1 391:856517285256
57 * @return file object that causes troubles, or <code>null</code> if specific file is unknown 57 * @return file object that causes troubles, or <code>null</code> if specific file is unknown
58 */ 58 */
59 public File getFile() { 59 public File getFile() {
60 return localFile; 60 return localFile;
61 } 61 }
62
63 @Override
64 protected void appendDetails(StringBuilder sb) {
65 super.appendDetails(sb);
66 if (localFile != null) {
67 sb.append(" file:");
68 sb.append(localFile.getPath());
69 sb.append(',');
70 if (localFile.exists()) {
71 sb.append("EXISTS");
72 } else {
73 sb.append("DOESN'T EXIST");
74 }
75 }
76 }
62 } 77 }