org.geotoolkit.referencing.factory.OptionalFactoryOperationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotk-referencing Show documentation
Show all versions of geotk-referencing Show documentation
Implementations of Coordinate Reference Systems (CRS),
conversion and transformation services derived from ISO 19111.
/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2010-2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2010-2011, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.referencing.factory;
import org.opengis.util.FactoryException;
/**
* Thrown when an optional factory operation has been requested, and this operation is not
* available in the current configuration. For example this exception is thrown when a
* {@link org.geotoolkit.referencing.operation.transform.NadconTransform} has been requested
* but the NADCON files are not installed.
*
* @author Martin Desruisseaux (Geomatys)
* @version 3.10
*
* @since 3.10
* @module
*/
public class OptionalFactoryOperationException extends FactoryException {
/**
* Serial number for inter-operability with different versions.
*/
private static final long serialVersionUID = 7434897698526502211L;
/**
* Construct an exception with no detail message.
*/
public OptionalFactoryOperationException() {
}
/**
* Construct an exception with the specified detail message.
*
* @param message The detail message. The detail message is saved
* for later retrieval by the {@link #getMessage()} method.
*/
public OptionalFactoryOperationException(String message) {
super(message);
}
/**
* Construct an exception with the specified cause.
*
* @param cause The cause for this exception. The cause is saved
* for later retrieval by the {@link #getCause()} method.
*/
public OptionalFactoryOperationException(Throwable cause) {
super(cause.getLocalizedMessage(), cause);
}
/**
* Construct an exception with the specified detail message and cause.
* The cause is the exception thrown in the underlying database
* (e.g. {@link java.io.IOException} or {@link java.sql.SQLException}).
*
* @param message The detail message. The detail message is saved
* for later retrieval by the {@link #getMessage()} method.
* @param cause The cause for this exception. The cause is saved
* for later retrieval by the {@link #getCause()} method.
*/
public OptionalFactoryOperationException(String message, Throwable cause) {
super(message, cause);
}
}