01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
05: * (C) 2001, 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.processing;
18:
19: /**
20: * Throws when a "resample" operation has been requested
21: * but the specified grid coverage can't be reprojected.
22: *
23: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/processing/CannotReprojectException.java $
24: * @version $Id: CannotReprojectException.java 23211 2006-12-05 00:38:41Z desruisseaux $
25: * @author Martin Desruisseaux
26: *
27: * @since 2.1
28: */
29: public class CannotReprojectException extends
30: CoverageProcessingException {
31: /**
32: * Serial number for interoperability with different versions.
33: */
34: private static final long serialVersionUID = -8145425848361056027L;
35:
36: /**
37: * Creates a new exception without detail message.
38: */
39: public CannotReprojectException() {
40: }
41:
42: /**
43: * Constructs a new exception with the specified detail message.
44: *
45: * @param message the detail message.
46: */
47: public CannotReprojectException(final String message) {
48: super (message);
49: }
50:
51: /**
52: * Constructs a new exception with the specified detail message and cause.
53: *
54: * @param message the detail message.
55: * @param cause The cause of this exception.
56: */
57: public CannotReprojectException(final String message,
58: final Throwable cause) {
59: super(message, cause);
60: }
61: }
|