01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2004, 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.metadata.sql;
18:
19: // J2SE dependencies
20: import java.sql.SQLException;
21:
22: /**
23: * Throws when a metadata method failed. The cause for this exception
24: * is typically a {@link SQLException}.
25: *
26: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/sql/MetadataException.java $
27: * @version $Id: MetadataException.java 20874 2006-08-07 10:00:01Z jgarnett $
28: * @author Touraïvane
29: * @author Martin Desruisseaux
30: *
31: * @since 2.1
32: */
33: public class MetadataException extends RuntimeException {
34: /**
35: * Constructs an instance of {@code MetadataException} with the specified
36: * detail message.
37: *
38: * @param message The detail message.
39: */
40: public MetadataException(final String message) {
41: super (message);
42: }
43:
44: /**
45: * Constructs an instance of {@code MetadataException} with the specified cause.
46: *
47: * @param message The detail message.
48: * @param cause The cause of this exception.
49: */
50: public MetadataException(final String message, final Exception cause) {
51: super(message, cause);
52: }
53: }
|