Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgRevisionIntegrityException.java @ 531:95c2f43008bd
Throw specific exception when checksum calculation fails
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 23 Jan 2013 18:03:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
530:0f6fa88e2162 | 531:95c2f43008bd |
---|---|
1 /* | |
2 * Copyright (c) 2013 TMate Software Ltd | |
3 * | |
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 | |
6 * the Free Software Foundation; version 2 of the License. | |
7 * | |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * For information on how to redistribute this software under | |
14 * the terms of a license other than GNU General Public License | |
15 * contact TMate Software at support@hg4j.com | |
16 */ | |
17 package org.tmatesoft.hg.core; | |
18 | |
19 import java.io.File; | |
20 | |
21 import org.tmatesoft.hg.repo.HgInvalidControlFileException; | |
22 import org.tmatesoft.hg.repo.HgInvalidFileException; | |
23 | |
24 /** | |
25 * Thrown to indicate integrity issues with a revision, namely, when digest (SHA1) over revision data | |
26 * doesn't match revision id. | |
27 * | |
28 * @author Artem Tikhomirov | |
29 * @author TMate Software Ltd. | |
30 */ | |
31 @SuppressWarnings("serial") | |
32 public class HgRevisionIntegrityException extends HgInvalidControlFileException { | |
33 | |
34 /** | |
35 * See {@link HgInvalidFileException#HgInvalidFileException(String, Throwable, File)} for parameters description. | |
36 */ | |
37 public HgRevisionIntegrityException(String message, Throwable th, File file) { | |
38 super(message, th, file); | |
39 } | |
40 | |
41 } |