001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/io/shpapi/OpenGISException.java $
002
003 /*----------------------------------------------------------------------------
004 This file is part of deegree, http://deegree.org/
005 Copyright (C) 2001-2009 by:
006 Department of Geography, University of Bonn
007 and
008 lat/lon GmbH
009
010 This library is free software; you can redistribute it and/or modify it under
011 the terms of the GNU Lesser General Public License as published by the Free
012 Software Foundation; either version 2.1 of the License, or (at your option)
013 any later version.
014 This library is distributed in the hope that it will be useful, but WITHOUT
015 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
016 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
017 details.
018 You should have received a copy of the GNU Lesser General Public License
019 along with this library; if not, write to the Free Software Foundation, Inc.,
020 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021
022 Contact information:
023
024 lat/lon GmbH
025 Aennchenstr. 19, 53177 Bonn
026 Germany
027 http://lat-lon.de/
028
029 Department of Geography, University of Bonn
030 Prof. Dr. Klaus Greve
031 Postfach 1147, 53001 Bonn
032 Germany
033 http://www.geographie.uni-bonn.de/deegree/
034
035 e-mail: info@deegree.org
036 ----------------------------------------------------------------------------*/
037
038 package org.deegree.io.shpapi;
039
040 /**
041 * OpenGIS related exceptions thrown by methods in this package.
042 *
043 *
044 * <p>
045 * -------------------------------------------------------------------------
046 * </p>
047 *
048 * @version 17.10.2001
049 * @author Andreas Poth
050 * <p>
051 */
052 public class OpenGISException extends Exception {
053 private static final long serialVersionUID = 221025089003678961L;
054
055 private String message = "org.deegree_impl.io.shpapi.OpenGISException";
056
057 /**
058 *
059 */
060 public OpenGISException() {
061 // no message
062 }
063
064 /**
065 * @param s
066 */
067 public OpenGISException( String s ) {
068 super( s );
069 message = s;
070 }
071
072 @Override
073 public String toString() {
074 return message + "\n" + this.getLocalizedMessage();
075 }
076 }