Package org.geotools.api.coverage
Class CannotEvaluateException
- Object
- 
- Throwable
- 
- Exception
- 
- RuntimeException
- 
- CannotEvaluateException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- PointOutsideCoverageException
 
 public class CannotEvaluateException extends RuntimeException The base class for exceptions thrown when a quantity can't be evaluated. This exception is usually invoked by aCoverage.evaluate(…)method, for example when a point is outside the coverage.- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD), Alexander Petkov
- See Also:
- Coverage.evaluate(Position, byte[]),- Coverage.evaluate(Position, double[]), Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CoveragegetCoverage()Returns the coverage for which this exception is thrown.voidsetCoverage(Coverage coverage)Sets the coverage.- 
Methods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
CannotEvaluateExceptionpublic CannotEvaluateException() Creates an exception with no message.
 - 
CannotEvaluateExceptionpublic CannotEvaluateException(String message) 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.
 
 - 
CannotEvaluateExceptionpublic CannotEvaluateException(String message, Throwable cause) 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.
- cause- The cause for this exception. The cause is saved for later retrieval by the- Throwable.getCause()method.
 
 
- 
 - 
Method Detail- 
getCoveragepublic Coverage getCoverage() Returns the coverage for which this exception is thrown. Useful whenCoverageis used on a multilevel, soCannotEvaluateExceptioncan provide informative details.- Returns:
- The coverage, or nullif unknown.
- Since:
- GeoAPÏ 2.2
 
 - 
setCoveragepublic void setCoverage(Coverage coverage) Sets the coverage.- Parameters:
- coverage- The coverage, or- nullif unknown.
- Since:
- GeoAPÏ 2.2
 
 
- 
 
-