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