tikhomirov@148: /* tikhomirov@148: * Copyright (c) 2011 TMate Software Ltd tikhomirov@148: * tikhomirov@148: * This program is free software; you can redistribute it and/or modify tikhomirov@148: * it under the terms of the GNU General Public License as published by tikhomirov@148: * the Free Software Foundation; version 2 of the License. tikhomirov@148: * tikhomirov@148: * This program is distributed in the hope that it will be useful, tikhomirov@148: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@148: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@148: * GNU General Public License for more details. tikhomirov@148: * tikhomirov@148: * For information on how to redistribute this software under tikhomirov@148: * the terms of a license other than GNU General Public License tikhomirov@148: * contact TMate Software at support@hg4j.com tikhomirov@148: */ tikhomirov@148: package org.tmatesoft.hg.core; tikhomirov@148: tikhomirov@148: import org.tmatesoft.hg.repo.HgDataFile; tikhomirov@215: import org.tmatesoft.hg.util.Path; tikhomirov@148: tikhomirov@148: /** tikhomirov@366: * Any erroneous state with @link {@link HgDataFile} input/output, read/write operations tikhomirov@366: * FIXME/REVISIT if HgInvalidControlFileExceptio and HgInvalidFileException is not sufficient? Is there real need for all 3? tikhomirov@148: * tikhomirov@148: * @author Artem Tikhomirov tikhomirov@148: * @author TMate Software Ltd. tikhomirov@148: */ tikhomirov@148: @SuppressWarnings("serial") tikhomirov@148: public class HgDataStreamException extends HgException { tikhomirov@148: tikhomirov@215: public HgDataStreamException(Path file, String message, Throwable cause) { tikhomirov@148: super(message, cause); tikhomirov@275: setFileName(file); tikhomirov@215: } tikhomirov@215: tikhomirov@215: public HgDataStreamException(Path file, Throwable cause) { tikhomirov@215: super(cause); tikhomirov@275: setFileName(file); tikhomirov@215: } tikhomirov@215: tikhomirov@275: @Override tikhomirov@275: public HgDataStreamException setRevision(Nodeid r) { tikhomirov@275: return (HgDataStreamException) super.setRevision(r); tikhomirov@275: } tikhomirov@275: tikhomirov@275: @Override tikhomirov@275: public HgDataStreamException setRevisionNumber(int rev) { tikhomirov@275: return (HgDataStreamException) super.setRevisionNumber(rev); tikhomirov@275: } tikhomirov@275: @Override tikhomirov@275: public HgDataStreamException setFileName(Path name) { tikhomirov@275: return (HgDataStreamException) super.setFileName(name); tikhomirov@148: } tikhomirov@148: }