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 coverage operation failed.
20: *
21: * @since 2.3
22: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/processing/CoverageProcessingException.java $
23: * @version $Id: CoverageProcessingException.java 23308 2006-12-07 16:45:48Z desruisseaux $
24: * @author Martin Desruisseaux
25: *
26: * @todo This exception may become a checked one in a future Geotools version.
27: */
28: public class CoverageProcessingException extends RuntimeException {
29: /**
30: * Serial number for interoperability with different versions.
31: */
32: private static final long serialVersionUID = -2199436135615396946L;
33:
34: /**
35: * Creates a new exception without detail message.
36: */
37: public CoverageProcessingException() {
38: }
39:
40: /**
41: * Constructs a new exception with the specified detail message.
42: *
43: * @param message the detail message.
44: */
45: public CoverageProcessingException(final String message) {
46: super (message);
47: }
48:
49: /**
50: * Constructs a new exception with the specified cause.
51: *
52: * @param cause The cause of this exception.
53: */
54: public CoverageProcessingException(final Throwable cause) {
55: super (cause);
56: }
57:
58: /**
59: * Constructs a new exception with the specified detail message and cause.
60: *
61: * @param message the detail message.
62: * @param cause The cause of this exception.
63: */
64: public CoverageProcessingException(final String message,
65: final Throwable cause) {
66: super(message, cause);
67: }
68: }
|