tikhomirov@498: /* tikhomirov@498: * Copyright (c) 2012 TMate Software Ltd tikhomirov@498: * tikhomirov@498: * This program is free software; you can redistribute it and/or modify tikhomirov@498: * it under the terms of the GNU General Public License as published by tikhomirov@498: * the Free Software Foundation; version 2 of the License. tikhomirov@498: * tikhomirov@498: * This program is distributed in the hope that it will be useful, tikhomirov@498: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@498: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@498: * GNU General Public License for more details. tikhomirov@498: * tikhomirov@498: * For information on how to redistribute this software under tikhomirov@498: * the terms of a license other than GNU General Public License tikhomirov@498: * contact TMate Software at support@hg4j.com tikhomirov@498: */ tikhomirov@498: package org.tmatesoft.hg.core; tikhomirov@498: tikhomirov@498: /** tikhomirov@498: * Exception tikhomirov@498: * tikhomirov@498: * @author Artem Tikhomirov tikhomirov@498: * @author TMate Software Ltd. tikhomirov@498: */ tikhomirov@498: @SuppressWarnings("serial") tikhomirov@498: public class HgMissingConfigElementException extends HgException { tikhomirov@498: tikhomirov@498: private final String section; tikhomirov@498: private final String key; tikhomirov@498: tikhomirov@498: public HgMissingConfigElementException(String message, String troubleSection, String missingKey) { tikhomirov@498: super(message); tikhomirov@498: section = troubleSection; tikhomirov@498: key = missingKey; tikhomirov@498: } tikhomirov@498: tikhomirov@498: public String getSection() { tikhomirov@498: return section; tikhomirov@498: } tikhomirov@498: tikhomirov@498: public String getKey() { tikhomirov@498: return key; tikhomirov@498: } tikhomirov@498: }