tikhomirov@427: /* tikhomirov@427: * Copyright (c) 2012 TMate Software Ltd tikhomirov@427: * tikhomirov@427: * This program is free software; you can redistribute it and/or modify tikhomirov@427: * it under the terms of the GNU General Public License as published by tikhomirov@427: * the Free Software Foundation; version 2 of the License. tikhomirov@427: * tikhomirov@427: * This program is distributed in the hope that it will be useful, tikhomirov@427: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@427: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@427: * GNU General Public License for more details. tikhomirov@427: * tikhomirov@427: * For information on how to redistribute this software under tikhomirov@427: * the terms of a license other than GNU General Public License tikhomirov@427: * contact TMate Software at support@hg4j.com tikhomirov@427: */ tikhomirov@427: package org.tmatesoft.hg.core; tikhomirov@427: tikhomirov@427: import org.tmatesoft.hg.util.Path; tikhomirov@427: tikhomirov@427: /** tikhomirov@427: * Indicates supplied path/location was is missing in the repository or specific revision. tikhomirov@427: *
Use {@link #getFileName()} to access name of the missing file tikhomirov@427: * tikhomirov@427: * @author Artem Tikhomirov tikhomirov@427: * @author TMate Software Ltd. tikhomirov@427: */ tikhomirov@427: @SuppressWarnings("serial") tikhomirov@427: public class HgPathNotFoundException extends HgException { tikhomirov@427: tikhomirov@427: public HgPathNotFoundException(String message, Path missingPath) { tikhomirov@427: super(message, null); tikhomirov@427: assert missingPath != null; tikhomirov@427: setFileName(missingPath); tikhomirov@427: } tikhomirov@427: }