public class CannotEvaluateException extends RuntimeException
Coverage.evaluate(…)
method, for example when a point is outside the coverage.Coverage.evaluate(DirectPosition, byte[]),
Coverage.evaluate(DirectPosition, double[]),
Serialized Form| Constructor and Description |
|---|
CannotEvaluateException()
Creates an exception with no message.
|
CannotEvaluateException(String message)
Creates an exception with the specified message.
|
CannotEvaluateException(String message,
Throwable cause)
Creates an exception with the specified message.
|
| Modifier and Type | Method and Description |
|---|---|
Coverage |
getCoverage()
Returns the coverage for which this exception is thrown.
|
void |
setCoverage(Coverage coverage)
Sets the coverage.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CannotEvaluateException()
public CannotEvaluateException(String message)
message - The detail message. The detail message is saved for later retrieval by the
Throwable.getMessage() method.public CannotEvaluateException(String message, Throwable cause)
message - The detail message. The detail message is saved for later retrieval by the
Throwable.getMessage() method.cause - The cause for this exception. The cause is saved for later retrieval by the
Throwable.getCause() method.@Extension public Coverage getCoverage()
Coverage is used
on a multilevel, so CannotEvaluateException can provide informative details.null if unknown.@Extension public void setCoverage(Coverage coverage)
coverage - The coverage, or null if unknown.Copyright © 1996–2019 Geotools. All rights reserved.