001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/io/dbaseapi/DBaseIndexException.java $ 002 /*---------------------------------------- 003 004 This file is part of deegree. 005 006 This library is free software; you can redistribute it and/or 007 modify it under the terms of the GNU Lesser General Public 008 License as published by the Free Software Foundation; either 009 version 2.1 of the License, or (at your option) any later version. 010 011 This library is distributed in the hope that it will be useful, 012 but WITHOUT ANY WARRANTY; without even the implied warranty of 013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 Lesser General Public License for more details. 015 016 You should have received a copy of the GNU Lesser General Public 017 License along with this library; if not, write to the Free Software 018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 019 020 Copyright (C) May 2003 by IDgis BV, The Netherlands - www.idgis.nl 021 ---------------------------------------- */ 022 023 package org.deegree.io.dbaseapi; 024 025 /** 026 * 027 * 028 * 029 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 030 * @author last edited by: $Author: aschmitz $ 031 * 032 * @version $Revision: 12519 $, $Date: 2008-06-25 11:37:30 +0200 (Mi, 25 Jun 2008) $ 033 */ 034 public abstract class DBaseIndexException extends Exception { 035 private Comparable key; 036 037 private DBaseIndex index; 038 039 public DBaseIndexException( String error, Comparable key, DBaseIndex index ) { 040 super( error ); 041 042 this.key = key; 043 this.index = index; 044 } 045 046 /** 047 * 048 * @return key 049 */ 050 public Comparable getKey() { 051 return key; 052 } 053 054 /** 055 * 056 * @return dbase index object 057 */ 058 public DBaseIndex getIndex() { 059 return index; 060 } 061 062 }