Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgInvalidFileException.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 | 9c9c442b5f2e |
| children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
| 530:0f6fa88e2162 | 531:95c2f43008bd |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011-2012 TMate Software Ltd | 2 * Copyright (c) 2011-2013 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 * |
| 41 | 41 |
| 42 public HgInvalidFileException(String message, Throwable th) { | 42 public HgInvalidFileException(String message, Throwable th) { |
| 43 super(message, th); | 43 super(message, th); |
| 44 } | 44 } |
| 45 | 45 |
| 46 /** | |
| 47 * | |
| 48 * @param message description of the trouble, may (although should not) be <code>null</code> | |
| 49 * @param th cause, optional | |
| 50 * @param file where the trouble is, may be <code>null</code>, can be altered later with {@link #setFile(File)} | |
| 51 */ | |
| 46 public HgInvalidFileException(String message, Throwable th, File file) { | 52 public HgInvalidFileException(String message, Throwable th, File file) { |
| 47 super(message, th); | 53 super(message, th); |
| 48 details.setFile(file); // allows null | 54 details.setFile(file); // allows null |
| 49 } | 55 } |
| 50 | 56 |
