Class PointOutsideCoverageException

    • Constructor Detail

      • PointOutsideCoverageException

        public PointOutsideCoverageException()
        Creates an exception with no message.
      • PointOutsideCoverageException

        public PointOutsideCoverageException​(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.
      • PointOutsideCoverageException

        public PointOutsideCoverageException​(String message,
                                             DirectPosition location)
        Creates an exception with the specified message and point.
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        location - The position outside the coverage, or null if unknown.
    • Method Detail

      • getOffendingLocation

        public DirectPosition 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

        public void setOffendingLocation​(DirectPosition location)
        Sets the direct position which is outside the domain of the coverage.
        Parameters:
        location - The position outside the coverage, or null if unknown.
        Since:
        GeoAPI 2.2