01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2005, 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;
10: * version 2.1 of the License.
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.referencing.factory;
18:
19: // J2SE direct dependencies
20: import java.io.IOException; // For javadoc
21: import java.sql.SQLException; // For javadoc
22:
23: /**
24: * Thrown to indicate that an {@link IdentifiedObjectSet} operation could not complete because of a
25: * failure in the backing store, or a failure to contact the backing store. This exception usually
26: * has an {@link IOException} or a {@link SQLException} as its {@linkplain #getCause cause}.
27: *
28: * @since 2.3
29: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/factory/BackingStoreException.java $
30: * @version $Id: BackingStoreException.java 20874 2006-08-07 10:00:01Z jgarnett $
31: * @author Martin Desruisseaux
32: */
33: public class BackingStoreException extends RuntimeException {
34: /**
35: * Serial version UID allowing cross compiler use of {@code BackingStoreException}.
36: */
37: private static final long serialVersionUID = 4257200758051575441L;
38:
39: /**
40: * Constructs a new exception with no detail message.
41: */
42: public BackingStoreException() {
43: }
44:
45: /**
46: * Constructs a new exception with the specified detail message.
47: *
48: * @param message the detail message, saved for later retrieval by the {@link #getMessage} method.
49: */
50: public BackingStoreException(final String message) {
51: super (message);
52: }
53:
54: /**
55: * Constructs a new exception with the specified cause.
56: *
57: * @param cause the cause, saved for later retrieval by the {@link Throwable#getCause} method.
58: */
59: public BackingStoreException(final Throwable cause) {
60: super (cause);
61: }
62:
63: /**
64: * Constructs a new exception with the specified detail message and cause.
65: *
66: * @param message the detail message, saved for later retrieval by the {@link #getMessage} method.
67: * @param cause the cause, saved for later retrieval by the {@link Throwable#getCause} method.
68: */
69: public BackingStoreException(final String message,
70: final Throwable cause) {
71: super(message, cause);
72: }
73: }
|