01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: *
05: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
06: * (C) 2001, Institut de Recherche pour le Développement
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Lesser General Public
10: * License as published by the Free Software Foundation; either
11: * version 2.1 of the License, or (at your option) any later version.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Lesser General Public License for more details.
17: */
18: package org.geotools.referencing.operation.projection;
19:
20: // OpenGIS dependencies
21: import org.opengis.referencing.operation.TransformException;
22:
23: /**
24: * Thrown by {@link MapProjection} when a map projection failed.
25: *
26: * @since 2.0
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/operation/projection/ProjectionException.java $
28: * @version $Id: ProjectionException.java 20874 2006-08-07 10:00:01Z jgarnett $
29: * @author André Gosselin
30: * @author Martin Desruisseaux
31: */
32: public class ProjectionException extends TransformException {
33: /**
34: * Serial number for interoperability with different versions.
35: */
36: private static final long serialVersionUID = 3031350727691500915L;
37:
38: /**
39: * Constructs a new exception with no detail message.
40: */
41: public ProjectionException() {
42: }
43:
44: /**
45: * Constructs a new exception with the specified detail message.
46: */
47: public ProjectionException(final String message) {
48: super (message);
49: }
50:
51: /**
52: * Constructs a new exception with the specified detail message and cause.
53: */
54: public ProjectionException(final String message,
55: final Throwable cause) {
56: super(message, cause);
57: }
58: }
|