org.geotools.coverage
Class OrdinateOutsideCoverageException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by CannotEvaluateException
                  extended by PointOutsideCoverageException
                      extended by OrdinateOutsideCoverageException
All Implemented Interfaces:
Serializable

public class OrdinateOutsideCoverageException
extends PointOutsideCoverageException

Thrown when an evaluate(...) method method is invoked with a point outside coverage. This subclass of PointOutsideCoverage exception is used when the dimension of the out-of-bounds ordinate is known.

Since:
2.1
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form
Module:
modules/library/coverage (gt-coverage.jar)

Constructor Summary
OrdinateOutsideCoverageException(String message, int dimension)
          Creates an exception with the specified message.
OrdinateOutsideCoverageException(String message, int dimension, Envelope envelope)
          Creates an exception with the specified message.
 
Method Summary
 Envelope getCoverageEnvelope()
          Returns the coverage envelope, or null if unknown.
 int getOutOfBoundsDimension()
          Returns the dimension of the out-of-bounds ordinate.
 
Methods inherited from class PointOutsideCoverageException
getOffendingLocation, setOffendingLocation
 
Methods inherited from class CannotEvaluateException
getCoverage, setCoverage
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrdinateOutsideCoverageException

public OrdinateOutsideCoverageException(String message,
                                        int dimension)
Creates an exception with the specified message.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
dimension - The dimension of the out-of-bounds ordinate.

OrdinateOutsideCoverageException

public OrdinateOutsideCoverageException(String message,
                                        int dimension,
                                        Envelope envelope)
Creates an exception with the specified message.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
dimension - The dimension of the out-of-bounds ordinate.
envelope - The coverage envelope, or null if unknown.
Since:
2.3
Method Detail

getOutOfBoundsDimension

public int getOutOfBoundsDimension()
Returns the dimension of the out-of-bounds ordinate.


getCoverageEnvelope

public Envelope getCoverageEnvelope()
Returns the coverage envelope, or null if unknown.

Since:
2.3


Copyright © 1996-2009 Geotools. All Rights Reserved.