Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgMissingConfigElementException.java @ 498:0205a5c4566b
Issue 38: preserve user formatting and comments when updating configuration files
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 26 Oct 2012 18:17:15 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
497:02140be396d5 | 498:0205a5c4566b |
---|---|
1 /* | |
2 * Copyright (c) 2012 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 /** | |
20 * Exception | |
21 * | |
22 * @author Artem Tikhomirov | |
23 * @author TMate Software Ltd. | |
24 */ | |
25 @SuppressWarnings("serial") | |
26 public class HgMissingConfigElementException extends HgException { | |
27 | |
28 private final String section; | |
29 private final String key; | |
30 | |
31 public HgMissingConfigElementException(String message, String troubleSection, String missingKey) { | |
32 super(message); | |
33 section = troubleSection; | |
34 key = missingKey; | |
35 } | |
36 | |
37 public String getSection() { | |
38 return section; | |
39 } | |
40 | |
41 public String getKey() { | |
42 return key; | |
43 } | |
44 } |