- All Implemented Interfaces:
public class LocalizationGridException extends FactoryDataException
Thrown when a localization grid can not be computed, presumably because of a problem with grid data. It may be because some grid coordinates are out of CRS domain of validity, causing either
MathTransformto be thrown or
Double.NaNcoordinate values to be computed.
Additional information on exception causeIt is sometime difficult to determine the root cause of this exception. For example grid points slightly outside the CRS domain of validity will not necessarily cause a failure. A strategy can be to try to build the grid anyway, and in case of failure declare that the grid was maybe too far from CRS domain of validity. Because the potential causes are better known by the code that wants a localization grid instead of the
setPotentialCause(CharSequence)method for allowing top-level code to attach additional information to this exception.
- See Also:
Constructor SummaryConstructorDescriptionConstruct an exception with no detail message.Constructs an exception with the specified detail message.Constructs an exception with the specified detail message and cause.Constructs an exception with the specified cause.
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
LocalizationGridExceptionpublic LocalizationGridException()Construct an exception with no detail message.
(String message)Constructs an exception with the specified detail message.
message- the detail message, saved for later retrieval by the
(Throwable cause)Constructs an exception with the specified cause.
cause- the cause, saved for later retrieval by the
LocalizationGridExceptionConstructs an exception with the specified detail message and cause. The cause is the exception thrown in the underlying database (e.g.
setPotentialCausepublic void setPotentialCause
(CharSequence details)Specifies additional information about what may be the cause of this exception. Example: "The grid spans more than 180° of longitude", which may be a cause of map projection failures.
getPotentialCausepublic CharSequence getPotentialCause()