Package org.geotools.api.coverage
Class PointOutsideCoverageException
Object
Throwable
Exception
RuntimeException
CannotEvaluateException
PointOutsideCoverageException
- All Implemented Interfaces:
Serializable
Thrown when a
evaluate
method is invoked for a location outside
the domain of the coverage.- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD), Alexander Petkov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with no message.PointOutsideCoverageException
(String message) Creates an exception with the specified message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the direct position which is outside the domain of the coverage.void
setOffendingLocation
(Position location) Sets the direct position which is outside the domain of the coverage.Methods inherited from class CannotEvaluateException
getCoverage, setCoverage
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PointOutsideCoverageException
public PointOutsideCoverageException()Creates an exception with no message. -
PointOutsideCoverageException
Creates an exception with the specified message.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
-
Method Details
-
getOffendingLocation
Returns the direct position which is outside the domain of the coverage.- Returns:
- The position outside the coverage, or
null
if unknown. - Since:
- GeoAPI 2.2
-
setOffendingLocation
Sets the direct position which is outside the domain of the coverage.- Parameters:
location
- The position outside the coverage, ornull
if unknown.- Since:
- GeoAPI 2.2
-