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 "scale" 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/CannotScaleException.java $
23: * @version $Id: CannotScaleException.java 23211 2006-12-05 00:38:41Z desruisseaux $
24: * @author Simone Giannecchini
25: *
26: * @since 2.3
27: */
28: public class CannotScaleException extends CoverageProcessingException {
29: /**
30: * Serial number for interoperability with different versions.
31: */
32: private static final long serialVersionUID = 8644771885589352455L;
33:
34: /**
35: * Creates a new exception without detail message.
36: */
37: public CannotScaleException() {
38: super ();
39: }
40:
41: /**
42: * Constructs a new exception with the specified detail message.
43: *
44: * @param message the detail message.
45: */
46: public CannotScaleException(String message) {
47: super (message);
48: }
49:
50: /**
51: * Constructs a new exception with the specified cause.
52: *
53: * @param cause The cause of this exception.
54: */
55: public CannotScaleException(Throwable cause) {
56: super (cause);
57: }
58:
59: /**
60: * Constructs a new exception with the specified detail message and cause.
61: *
62: * @param message the detail message.
63: * @param cause The cause of this exception.
64: */
65: public CannotScaleException(String message, Throwable cause) {
66: super(message, cause);
67: }
68: }
|