001 //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/model/coverage/grid/CannotCreateGridCoverageException.java $
002 /*----------------------------------------------------------------------------
003 This file originated as a part of GeoAPI.
004
005 GeoAPI is free software. GeoAPI may be used, modified and
006 redistributed by anyone for any purpose requring only maintaining the
007 copyright and license terms on the source code and derivative files.
008 See the OGC legal page for details.
009
010 The copyright to the GeoAPI interfaces is held by the Open Geospatial
011 Consortium, see http://www.opengeospatial.org/ogc/legal
012 ----------------------------------------------------------------------------*/
013 package org.deegree.model.coverage.grid;
014
015 // J2SE direct depencies
016 import java.io.IOException;
017
018 /**
019 * Thrown when a {@linkplain GridCoverage grid coverage} can't be created.
020 *
021 * @UML exception GC_CannotCreateGridCoverage
022 * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A>
023 * @version <A HREF="http://www.opengis.org/docs/01-004.pdf">Grid Coverage specification 1.0</A>
024 *
025 * @see GridCoverageReader#read
026 *
027 * @revisit In a J2SE 1.4 profile, this exception should extends {@link javax.imageio.IIOException}.
028 */
029 public class CannotCreateGridCoverageException extends IOException {
030 /**
031 * Serial number for interoperability with different versions.
032 */
033 private static final long serialVersionUID = 3768704221879769389L;
034
035 /**
036 * Creates an exception with no message.
037 */
038 public CannotCreateGridCoverageException() {
039 super();
040 }
041
042 /**
043 * Creates an exception with the specified message.
044 *
045 * @param message
046 * The detail message. The detail message is saved for later retrieval by the
047 * {@link #getMessage()} method.
048 */
049 public CannotCreateGridCoverageException( String message ) {
050 super( message );
051 }
052 }