01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.coverage.processing;
17:
18: /**
19: * Throws when a "crop" operation has been requested
20: * but the specified grid coverage can't be scaled.
21: *
22: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/processing/CannotCropException.java $
23: * @version $Id: CannotCropException.java 23211 2006-12-05 00:38:41Z desruisseaux $
24: * @author Simone Giannecchini
25: *
26: * @since 2.3
27: */
28: public class CannotCropException extends CoverageProcessingException {
29: /**
30: * Serial number for interoperability with different versions.
31: */
32: private static final long serialVersionUID = -4382377333378224973L;
33:
34: /**
35: * Creates a new exception without detail message.
36: */
37: public CannotCropException() {
38: }
39:
40: /**
41: * Constructs a new exception with the specified detail message.
42: *
43: * @param message the detail message.
44: */
45: public CannotCropException(String message) {
46: super (message);
47: }
48:
49: /**
50: * Constructs a new exception with the specified detail message and cause.
51: *
52: * @param message the detail message.
53: * @param cause The cause of this exception.
54: */
55: public CannotCropException(String message, Throwable exception) {
56: super(message, exception);
57: }
58: }
|