Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgDataStreamException.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 | 2fadf8695f8a |
children |
comparison
equal
deleted
inserted
replaced
395:4732fffff58a | 396:0ae53c32ecef |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 TMate Software Ltd | 2 * Copyright (c) 2011-2012 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
19 import org.tmatesoft.hg.repo.HgDataFile; | 19 import org.tmatesoft.hg.repo.HgDataFile; |
20 import org.tmatesoft.hg.util.Path; | 20 import org.tmatesoft.hg.util.Path; |
21 | 21 |
22 /** | 22 /** |
23 * Any erroneous state with @link {@link HgDataFile} input/output, read/write operations | 23 * Any erroneous state with @link {@link HgDataFile} input/output, read/write operations |
24 * FIXME/REVISIT if HgInvalidControlFileExceptio and HgInvalidFileException is not sufficient? Is there real need for all 3? | 24 * |
25 * @deprecated {@link HgInvalidControlFileException} and {@link HgInvalidFileException} deemed sufficient | |
25 * | 26 * |
26 * @author Artem Tikhomirov | 27 * @author Artem Tikhomirov |
27 * @author TMate Software Ltd. | 28 * @author TMate Software Ltd. |
28 */ | 29 */ |
29 @SuppressWarnings("serial") | 30 @SuppressWarnings("serial") |
31 @Deprecated | |
30 public class HgDataStreamException extends HgException { | 32 public class HgDataStreamException extends HgException { |
31 | 33 |
32 public HgDataStreamException(Path file, String message, Throwable cause) { | 34 public HgDataStreamException(Path file, String message, Throwable cause) { |
33 super(message, cause); | 35 super(message, cause); |
34 setFileName(file); | 36 setFileName(file); |