/*
 *    GeoTools - OpenSource mapping toolkit
 *    http://geotools.org
 *    (C) 2003-2006, Geotools Project Managment Committee (PMC)
 *    (C) 2003, Institut de Recherche pour le Développement
 *
 *    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; either
 *    version 2.1 of the License, or (at your option) any later version.
 *
 *    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.geotools.coverage.grid;


/**
 * Thrown by {@link GeneralGridGeometry} when a grid geometry is in an invalid state. For example
 * this exception is thrown when {@link GeneralGridGeometry#getGridRange() getGridRange()} is
 * invoked while the grid geometry were built with a null
 * {@link org.opengis.coverage.grid.GridRange}.
 *
 * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/grid/InvalidGridGeometryException.java $
 * @version $Id: InvalidGridGeometryException.java 22817 2006-11-17 17:24:55Z desruisseaux $
 * @author Martin Desruisseaux
 *
 * @since 2.1
 */
public class InvalidGridGeometryException extends IllegalStateException {
    /**
     * Serial number for interoperability with different versions.
     */
    private static final long serialVersionUID = -7386283388753448743L;
    
    /**
     * Construct an exception with no detail message.
     */
    public InvalidGridGeometryException() {
    }
    
    /**
     * Construct an exception with the specified detail message.
     */
    public InvalidGridGeometryException(final String message) {
        super(message);
    }
    
    /**
     * Construct an exception with the specified detail message and cause.
     */
    public InvalidGridGeometryException(final String message, final Throwable cause) {
        super(message);
        initCause(cause);
    }
}
