/*$************************************************************************************************
**
** $Id: CannotEvaluateException.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/coverage/CannotEvaluateException.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.coverage;
// OpenGIS direct dependencies
import org.opengis.spatialschema.geometry.DirectPosition; // For Javadoc
/**
* The base class for exceptions thrown when a quantity can't be evaluated.
* This exception is usually invoked by a
* Coverage.{@linkplain Coverage#evaluate(DirectPosition, double[]) evaluate}(…)
* method, for example when a point is outside the coverage.
*
*
*
*
* WARNING: THIS CLASS WILL CHANGE. Current API is derived from OGC
* Grid Coverages Implementation specification 1.0.
* We plan to replace it by new interfaces derived from ISO 19123 (Schema for coverage geometry
* and functions). Current interfaces should be considered as legacy and are included in this
* distribution only because they were part of GeoAPI 1.0 release. We will try to preserve as much
* compatibility as possible, but no migration plan has been determined yet.
*
*
*
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 1.0
*
* @see Coverage#evaluate(DirectPosition, byte[])
* @see Coverage#evaluate(DirectPosition, double[])
*/
public class CannotEvaluateException extends RuntimeException {
/**
* Serial number for interoperability with different versions.
*/
private static final long serialVersionUID = 506793649975583062L;
/**
* Creates an exception with no message.
*/
public CannotEvaluateException() {
super();
}
/**
* Creates an exception with the specified message.
*
* @param message The detail message. The detail message is saved for
* later retrieval by the {@link #getMessage()} method.
*/
public CannotEvaluateException(String message) {
super(message);
}
/**
* Creates an exception with the specified message.
*
* @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 CannotEvaluateException(String message, Throwable cause) {
super(message, cause);
}
}
Ads help maintain this website.